Date: Wed, 10 Aug 2005 11:30:39 -0700
Reply-To: "Pardee, Roy" <pardee.r@GHC.ORG>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: "Pardee, Roy" <pardee.r@GHC.ORG>
Subject: Re: Automatic program name footnote
Content-Type: text/plain; charset="us-ascii"
Here's the code I use:
* Try to include a footnote--does this work accross rsubmit boundaries?
proc sql noprint ;
into :CurrFile separated by ' '
where fileref like "#LN00006" ;
footnote "Program file: &CurrFile " ;
I put that in a file that I routinely %include into my sas progs--don't
know if it would work in a .cfg.
This is working in v8.2 on windows, running in batch only.
From: SAS(r) Discussion [mailto:SAS-L@LISTSERV.UGA.EDU] On Behalf Of
Sent: Wednesday, August 10, 2005 11:18 AM
Subject: Automatic program name footnote
I'm exploring ways to create an automatic footnote that would list the
name of the program used (and possibly its path) to generate the
output. The recent topic "reading LOG file of the currently running
" seems related, but it doesn't address this issue directly. Is there
someway to automate this process?
Ideally, this would be a simple macro placed in a .cfg? file that would
stamp all output with this footnote. The fact that SAS writes the
program name as the header of the enhanced editor (interactive PC SAS)
intimates that SAS is storing that information *somewhere.* Any
thoughts from the systems-minded?
Thanks as always,