<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Program Path and Filename when in SAS in SAS Health and Life Sciences</title>
    <link>https://communities.sas.com/t5/SAS-Health-and-Life-Sciences/Program-Path-and-Filename-when-in-SAS/m-p/2629#M207</link>
    <description>In SAS 9, there is a new environment variable for the Enhanced Editor named SAS_EXECFILENAME, then you can retrieve the name of the current program by issuing this statement: &lt;BR /&gt;
&lt;BR /&gt;
    %put The current program is  %sysget(SAS_EXECFILENAME);&lt;BR /&gt;
&lt;BR /&gt;
There is also an environment variable for the Enhanced Editor called SAS_EXECFILEPATH that contains the full path of the submitted program or catalog entry. The full path includes the folder and the filename.&lt;BR /&gt;
&lt;BR /&gt;
    %put The current path is  %sysget(SAS_EXECFILEPATH);</description>
    <pubDate>Tue, 27 Mar 2007 16:44:08 GMT</pubDate>
    <dc:creator>Dave_SAS</dc:creator>
    <dc:date>2007-03-27T16:44:08Z</dc:date>
    <item>
      <title>Program Path and Filename when in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Health-and-Life-Sciences/Program-Path-and-Filename-when-in-SAS/m-p/2628#M206</link>
      <description>Hi all&lt;BR /&gt;
&lt;BR /&gt;
I hope somebody can help me.&lt;BR /&gt;
&lt;BR /&gt;
Is there a way to obtain the current SAS program path and filename from within a SAS session. When batch submitting, this is stored in the SYSIN option, but I was hoping there is a way to find this when in SAS itself (that is, not batch submitting a program.)&lt;BR /&gt;
&lt;BR /&gt;
Thanks.</description>
      <pubDate>Tue, 27 Mar 2007 13:14:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Health-and-Life-Sciences/Program-Path-and-Filename-when-in-SAS/m-p/2628#M206</guid>
      <dc:creator>AlexBrink</dc:creator>
      <dc:date>2007-03-27T13:14:40Z</dc:date>
    </item>
    <item>
      <title>Re: Program Path and Filename when in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Health-and-Life-Sciences/Program-Path-and-Filename-when-in-SAS/m-p/2629#M207</link>
      <description>In SAS 9, there is a new environment variable for the Enhanced Editor named SAS_EXECFILENAME, then you can retrieve the name of the current program by issuing this statement: &lt;BR /&gt;
&lt;BR /&gt;
    %put The current program is  %sysget(SAS_EXECFILENAME);&lt;BR /&gt;
&lt;BR /&gt;
There is also an environment variable for the Enhanced Editor called SAS_EXECFILEPATH that contains the full path of the submitted program or catalog entry. The full path includes the folder and the filename.&lt;BR /&gt;
&lt;BR /&gt;
    %put The current path is  %sysget(SAS_EXECFILEPATH);</description>
      <pubDate>Tue, 27 Mar 2007 16:44:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Health-and-Life-Sciences/Program-Path-and-Filename-when-in-SAS/m-p/2629#M207</guid>
      <dc:creator>Dave_SAS</dc:creator>
      <dc:date>2007-03-27T16:44:08Z</dc:date>
    </item>
    <item>
      <title>Re: Program Path and Filename when in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Health-and-Life-Sciences/Program-Path-and-Filename-when-in-SAS/m-p/2630#M208</link>
      <description>Dave,&lt;BR /&gt;
&lt;BR /&gt;
It's good that SAS can finally pick-up the program it's executing at run-time interactively.&lt;BR /&gt;
&lt;BR /&gt;
The problem is, these environment variables don't exist when the program is being batch-submitted.&lt;BR /&gt;
&lt;BR /&gt;
Just a note to anyone using these environment variables that you need to be careful which SAS environment you're using them in.&lt;BR /&gt;
&lt;BR /&gt;
You can check whether the program is being executed interactively (checking whether SYSPROCESSNAME = DMS PROCESS) or in batch mode.&lt;BR /&gt;
&lt;BR /&gt;
Cheers,&lt;BR /&gt;
Lawrence</description>
      <pubDate>Fri, 04 May 2007 09:59:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Health-and-Life-Sciences/Program-Path-and-Filename-when-in-SAS/m-p/2630#M208</guid>
      <dc:creator>LawrenceHW</dc:creator>
      <dc:date>2007-05-04T09:59:53Z</dc:date>
    </item>
  </channel>
</rss>

