Date: Fri, 4 Nov 2011 22:24:09 -0400
Reply-To: bbser 2009 <bbser2009@GMAIL.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: bbser 2009 <bbser2009@GMAIL.COM>
Subject: Lost Card Question (please see this one)
Content-Type: text/plain; charset="us-ascii"
Hi there,
After running the code below, there was no problem for step 3, but I got the
lost card information from step 4.
I feel strange about this:
I assume in step 3 SAS entered into the do until block twice,
which in effect is similar as the step 4,
thus we should have got the lost card information from step 3 as well,
but we actually do not get this information.
Could anyone please say anything about this? Thank you very much.
Best regards, Max
(Maaxx)
==========
data have;
x=1;
run;
data _null_;
set have;
file "c:\have.dat";
put x;
run;
*step 3;
data _null_;
infile "c:\have.dat" end=_end;
do until(_end);
input x;
end;
run;
*step 4;
data _null_;
infile "c:\have.dat" end=_end;
do i=1,2;
input x;
end;
run;
|