Date: Wed, 14 Mar 2007 22:08:34 -0400
Reply-To: Amy Sun <tonyliang20032@GMAIL.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Amy Sun <tonyliang20032@GMAIL.COM>
Subject: if _n_ = 1
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Hi, all;
I am confused about the output for the following code
data ee;
input c d;
cards;
34 5
35 34
46 75
;
data new;
put 'a:' _all_;
if _n_ = 1 then set ee;
put 'b:' _all_;
proc print data = new;
run;
output:
Obs c d
1 34 5
2 34 5
Question: why there are two records in the output? How to interpret this?
Thank you in advance for your suggestions.
Amy
|