1。
这个程序跑出来为什么只有一个观测?我是用Notepad,datalines和cards不算
124325 08/10/2003 1250.03
7 08/11/2003 12500.02
114565 08/11/2003 5.11
filename transact 'C:\BBU FORMAT\DATA\TRANS1.DAT';
data transact;
infile transact;
input @1 id $6.
@10 tran_date mmddyy10.
@25 amount 8.2
;
amount=1;
tran_date=2;
id=1;
run;
proc print data=transact;
run;
2. 还是上一个程序,书上说
Note that the Tran_Date variable is now in
terms of SAS date values representing the number of days since the first day of the
year specified in the YEARCUTOFF option (for this run, yearcutoff=1920).
我怎么感觉是从1960算起啊? 15000多天