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:   Wed, 29 Sep 2010 04:13:53 -0400
Reply-To:   bbser2009 <bbser2009@GMAIL.COM>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   bbser2009 <bbser2009@GMAIL.COM>
Subject:   Questions again RE: proc print without data= option
Comments:   To: goladin@gmail.com
In-Reply-To:   <4ca2ca7a.893ae30a.44d9.56ed@mx.google.com>
Content-Type:   text/plain; charset="utf-8"

Hi,

Murphy is right. I just experimented whatever the data set we put at the end of the data statement, it is got printed out. Now I got two questions: 1. What's exactly the rule for the proc print without data= option in this regard? Could you say it explicitly? 2. At the end of the final execution, what on earth SAS does to those data sets included in the DATA statement?

Regards, Max

-----Original Message----- From: goladin@gmail.com [mailto:goladin@gmail.com] Sent: September-29-10 1:09 AM To: bbser2009 Subject: RE: proc print without data= option

Hi,

No. The last dataset is c.

Regards, Murphy

-----Original Message----- From: bbser2009 Sent: 29/09/2010 11:59:51 Subject: Re: proc print without data= option

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