Date: Tue, 1 Oct 1996 10:49:30 -0500
Reply-To: Thomas Kalfas <kalfast@PPRD.ABBOTT.COM>
Sender: "SAS(r) Discussion" <SAS-L@UGA.CC.UGA.EDU>
From: Thomas Kalfas <kalfast@PPRD.ABBOTT.COM>
Subject: Re: Retrieve SAS program name to a macro variable
In-Reply-To: Ziqing Pan <zpan@UMICH.EDU> "Retrieve SAS program name to a macro
variable" (Sep 30, 12:35am)
Ziqing,
It seems that this information should already be known by SAS, but I'm not
aware of the variable or function which would retrieve this information. In
leiu of this, the obvious solution would be to assign the macro variable in
each of your programs (this is what was done by my previous employer) so that
it is available where and whenever you need it. Another idea would be to pass
the program name to the program as a parameter using the SYSPARM invocation
option. Maybe some of the PC experts out there can give you an example that
fills the SYSPARM parameter automatically with the full path for the filename.
HIH,
Tom
On Sep 30, 12:35am, Ziqing Pan wrote:
> Subject: Retrieve SAS program name to a macro variable
> I am running SAS program 'c:\analysis\prog1\weight.sas'
> (SAS 6.10,Windows). How can I automatically retrieve
> and pass the value 'c:\analysis\prog1\weight.sas' to a
> macro variable, so I can output it to a table as a
> footnote?
>
> Thanks a lot,
> Ziqing Pan at University of Michigan
>-- End of excerpt from Ziqing Pan
--
Thomas Kalfas
System Developer
Abbott Laboratories
E-mail: kalfast@pprd.abbott.com
Phone: (847) 938-8101
Fax: (847) 935-1320
|