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
|