<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Snipplr</title>
<link>http://snipplr.com/tags/sashelpvextfl</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Wed, 22 May 2013 16:25:47 GMT</pubDate>
<item>
<title>(SAS) Retrieve the path name and filename of executing program ... programmatically - sarathannapareddy</title>
<link>http://snipplr.com/view/13860/retrieve-the-path-name-and-filename-of-executing-program--programmatically/</link>
<description><![CDATA[ <p>Oftentimes, I was asked to keep the name and path of the executing program in the FOOTNOTE of the generated table or listings.

I have always created a macro variable using the %let statement and, then I called the Macro variable in the footnote statement to get the name of the program. Eventhough it is simple.. it may not be suitable when we write application which need to self document...

Here is another technique which can be used to retrieve the pathname and filename (last executed) .....

To get the last opened filename:

proc sql noprint;
select scan(xpath,-1,'\') into :progname from sashelp.vextfl
where upcase(xpath) like '%.SAS';
quit;

%put &amp;progname; 
read more.. at ...http://studysas.blogspot.com/2009/04/how-to-determine-executing-program-name.html</p> ]]></description>
<pubDate>Tue, 07 Apr 2009 13:09:15 GMT</pubDate>
<guid>http://snipplr.com/view/13860/retrieve-the-path-name-and-filename-of-executing-program--programmatically/</guid>
</item>
</channel>
</rss>