我运行了一下CODE但是结果与你的少有不同。如下:
10 data b (keep=obs name sex);
11 do n=3,5,7,4;
12 set sashelp.class point=n;
13 output;
14 end;
15 stop;
WARNING: The variable obs in the DROP, KEEP, or RENAME list has never been referenced.
NOTE: The data set WORK.B has 4 observations and 2 variables.
NOTE: DATA statement used (Total process time):
real time 24.63 seconds
cpu time 0.81 seconds
做了更改:去掉 obs 之后就好了。如下:
58 data b (keep=name sex);
59 do n=3,5,7,4;
60 set sashelp.class point=n;
61 output;
62 end;
63 stop;
64 run;
NOTE: The data set WORK.B has 4 observations and 2 variables.
NOTE: DATA statement used (Total process time):
real time 0.01 seconds
cpu time 0.01 seconds