LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (September 2010, week 5)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Tue, 28 Sep 2010 23:59:51 -0400
Reply-To:     bbser2009 <bbser2009@GMAIL.COM>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         bbser2009 <bbser2009@GMAIL.COM>
Subject:      Re: proc print without data= option
Comments: To: Arthur Tabachneck <art297@NETSCAPE.NET>
In-Reply-To:  <201009290312.o8SJbxAU029128@willow.cc.uga.edu>
Content-Type: text/plain; charset="us-ascii"

Art,

Since 15 is the last value for Age, so I would say data set A will be printed by the proc print?

Regards, Max

-----Original Message----- From: Arthur Tabachneck [mailto:art297@NETSCAPE.NET] Sent: September-28-10 11:12 PM To: SAS-L@LISTSERV.UGA.EDU; Bbser 2009 Subject: Re: proc print without data= option

Here is a good question for the certification exam: given the following code, which records will be printed?

data a b c; set sashelp.class; if age gt 15 then output a; else if age gt 12 then output b; else output c; run; proc print; run;

Art -------- On Tue, 28 Sep 2010 22:58:34 -0400, bbser2009 <bbser2009@GMAIL.COM> wrote:

>I submitted this code: > >proc sort data=sasuser.admitjune out=b; > > by ID; > >run; > >proc print; > >run; > > > >The output is the data set b. >I know proc print outputs the "last" or "current" data set. >But I just am curious why it is not sasuser.admitjune? > >Regards, Max


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