LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous (more recent) messageNext (less recent) messagePrevious (more recent) in topicNext (less recent) in topicPrevious (more recent) by same authorNext (less recent) by same authorPrevious page (March 2007, week 2)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
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


Back to: Top of message | Previous page | Main SAS-L page