data list-etc;
informat subj $3.
name $20.
dob mmddyy10.
salary dollar8.
;
cards;
"001","Christopher Mullens",11/12/1955,"$45,200"
"002","Michelle Kwo",9/12/1955,"$78,123"
"003","Roger W. McDonald",1/1/1960,"$107,200"
;
input subj
name
dob
salary ;
format dob date9.0 salary dollar8.;
run;;
这段程序有什么错误吗?求指教。还有下面这段程序,怎么修改呀?
data demographics;
infile "C:\软件\Learning\mydata.csv" dsd;
input gender $ age height weight;
run;
proc print data=demographics;
run;;