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 (April 2005, week 5)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Fri, 29 Apr 2005 16:58:01 -0400
Reply-To:     "Fehd, Ronald J" <rjf2@CDC.GOV>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         "Fehd, Ronald J" <rjf2@CDC.GOV>
Subject:      Re: How to find out the name of the _last_ dataset
Content-Type: text/plain; charset="us-ascii"

> From: Chang Chung > Is there any way of finding out the real name of the _last_ > dataset? Thanks.

data testthis;x=1;output;stop;run; %Put SysLast<&SysLast.>;

2 %Put SysLast<&SysLast.>; SysLast<WORK.TESTTHIS >

you'll probably want to trim that and possibly break it down into Lib and Data:

%Let Lib =%scan(&SysLast.,1,.); %Let Data =%scan(&SysLast.,2,.);

%Put Lib<&Lib.> Data<&Data.>;

Ron Fehd the macro maven CDC Atlanta GA USA RJF2 at cdc dot gov


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