Date: Mon, 8 Nov 2010 21:31:05 -0500
Reply-To: bbser2009 <bbser2009@GMAIL.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: bbser2009 <bbser2009@GMAIL.COM>
Subject: what's wrong, only 5 observations
Content-Type: text/plain; charset="us-ascii"
I accidently wrote down a strange but grammatically right code like this:
data temp;
do i=1 to 42 by 2;
set sasuser.actlevel;
output;
end;
run;
proc print;
run;
The data set being read has 42 observations. I supposed the code gave me 21
observations.
But it turned out I only got the first 5 observations from the original data
set.
Could you help me explain this results. Thanks.
Max
|