Date: Wed, 29 Sep 2010 06:14:31 -0500
Reply-To: "Data _null_;" <iebupdte@GMAIL.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: "Data _null_;" <iebupdte@GMAIL.COM>
Subject: Re: proc print without data= option
In-Reply-To: <001001cb5f8a$c54bdd00$4fe39700$@com>
Content-Type: text/plain; charset=ISO-8859-1
Last data set "created" or it can be set using _LAST_ system option.
3784 options _last_=sashelp.shoes;
3785
3786 proc options option=_last_ define;
3787 run;
SAS (r) Proprietary Software Release 9.2 TS2M0
_LAST_=SASHELP.shoes
Option Definition Information for SAS Option _LAST_
Group= SASFILES
Group Description: Library and member file information
Description: Last SAS data set created
Type: The option value is of type CHARACTER
Maximum Number of Characters: 1024
Casing: The option value is retained with original casing
Quotes: If present during "set", start and end quotes are removed
Parentheses: The option value does not require enclosure
within parentheses. If present, the parentheses are
retained.
Expansion: Environment variables, within the option value,
are not expanded
When Can Set: Startup or anytime during the SAS Session
Restricted: Your Site Administrator cannot restrict modification
of this option
Optsave: Proc Optsave or command Dmoptsave will save this option
On Tue, Sep 28, 2010 at 10:59 PM, bbser2009 <bbser2009@gmail.com> wrote:
> Murphy,
>
> Thanks a lot. This made me realize that the DATA= data set is just read by the proc sort and the last execution of proc sort is to write the last observation of the data set b. So b is the last data set that sas deals with.
>
> Max
>
> -----Original Message-----
> From: goladin@gmail.com [mailto:goladin@gmail.com]
> Sent: September-28-10 11:36 PM
> To: bbser2009
> Subject: RE: proc print without data= option
>
> Hi,
>
> Might be wrong here. I thought that SAS always reference the last dataset opened. In this case, b is the one last opened.
>
> Forgive me for my ignorance if i am wrong on this.
>
> Regards,
> Murphy
> -----Original Message-----
> From: bbser2009
> Sent: 29/09/2010 10:58:34
> Subject: proc print without data= option
>
> 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
>
|