xiaosanmao 发表于 2010-4-25 19:55 
%macro output;
data a6;
set %do i=1 %to 5;
a&i
%end;
;
run;
%mend;
%output;
In this case, using (set a1-a5) is better.
64 data a6;
65 set a1-a5;
66 run;
NOTE: There were 1 observations read from the data set WORK.A1.
NOTE: There were 1 observations read from the data set WORK.A2.
NOTE: There were 1 observations read from the data set WORK.A3.
NOTE: There were 1 observations read from the data set WORK.A4.
NOTE: There were 1 observations read from the data set WORK.A5.
NOTE: The data set WORK.A6 has 5 observations and 1 variables.
NOTE: DATA statement used (Total process time):
real time 0.01 seconds
cpu time 0.01 seconds