c******j 发帖数: 270 | 1 dataset mydata contains 3 observations.
If I run this code:
data new;
do i=1 to 3;
set mydata;
end;
run;
why there is only 1 obs in the data new? |
EA 发帖数: 3965 | 2 your code doesn't make sense. what are you trying to do? what is i referring
? |
c******j 发帖数: 270 | 3 It's a SAS base practice question........
It's not that I want to do anything....
I want to know why the "set mydata" statement run three times but only 1 obs
is output. |
A*********u 发帖数: 8976 | 4 set statement only read one observation into pdv once a time
it won't write the observation to the new dataset unless sas
meets an output statement, or reaches the end of the data step
(the output statement will overwrite the default output at the end)
It's a SAS base practice question........
It's not that I want to do anything....
I want to know why the "set mydata" statement run three times but only 1 obs
is output.
【在 c******j 的大作中提到】![](/moin_static193/solenoid/img/up.png) : It's a SAS base practice question........ : It's not that I want to do anything.... : I want to know why the "set mydata" statement run three times but only 1 obs : is output.
|
c******j 发帖数: 270 | |