我想要从全样本(test.file)中个别求的滚动样本数据tempfile1,tempfile2,...tempfile476,
export to out1.csv out2.csv.....out476.csv How to correct the error in the log file ?
Sincerly !
Cited by :
SAS Code Fragments
Macro to Compute a "rolling" standard deviation Log file
-------------------------------------
14 GOPTIONS ACCESSIBLE;
15 %macro rollspl;
16 %do firstobs = 1 %to 476;
17 %let lastobs = %eval( &firstobs + 24)
18 data tempfile.&firstobs;
19 set work.test(firstobs=&firstobs obs=&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 rollspl;
28 %rollspl
ERROR: Libname TEMPFILE is not assigned.
ERROR: Export unsuccessful. See SAS Log for details.
NOTE: The SAS System stopped processing this step because of errors.
NOTE: PROCEDURE EXPORT used (Total process time):
-------------------------------------------------------------------