|
中间的点delete, 还是有ERROR
15 %macro rollsa;
16 %do firstobs = 1 %to 476;
17 %let lastobs = %eval(&firstobs + 24)
18 data tempfile&firstobs;
19 set work.test(firstobs=&firstobsobs=&lastobs);
20 run;
21 proc export data=tempfile&firstobs
22 outfile="c:\temp\out&firstobs.csv"
23 dbms=csv
24 replace;
25 run;
26 %end;
27 %mend rollsa;
28 %rollsa
NOTE: Line generated by the invoked macro "ROLLSA".
28 set work.test(firstobs=&firstobs obs=&lastobs);
ERROR 180-322: Statement is not valid or it is used out of proper order.
ERROR: File WORK.TEMPFILE1.DATA does not exist.
ERROR: Export unsuccessful. See SAS Log for details.
real time 0.05 seconds
cpu time 0.06 seconds
|