Hi, I am trying to use macro to produce automatically sasdata set under name: file1,file2,...file5 each which will contain a time series. The following code does't produce those 5 sets. Can someone suggest a solution?
Thank you
---------------------------------
%MACRO TS;
%DO I=1 %TO 5;
Data file||&I;
w=0;
DO t=0 to 100;
money=rannor(0);
w=money+w;
x=0.3*t+w;
output;
END;
RUN;
%END;
%MEND TS;
%TS;