<?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: Capturing the current file name of the running SAS program in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Capturing-the-current-file-name-of-the-running-SAS-program/m-p/7516#M84</link>
    <description>Hi,&lt;BR /&gt;
  If you go to support.sas.com and search on the string &lt;B&gt;&lt;BR /&gt;
current file name batch program&lt;/B&gt;&lt;BR /&gt;
&lt;BR /&gt;
This Tech Support note is the 3rd hit on the page&lt;BR /&gt;
&lt;A href="http://support.sas.com/kb/24/301.html" target="_blank"&gt;http://support.sas.com/kb/24/301.html&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
cynthia</description>
    <pubDate>Sun, 16 Mar 2008 12:56:05 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2008-03-16T12:56:05Z</dc:date>
    <item>
      <title>Capturing the current file name of the running SAS program</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Capturing-the-current-file-name-of-the-running-SAS-program/m-p/7515#M83</link>
      <description>Hi everyone,&lt;BR /&gt;
&lt;BR /&gt;
I am looking for a way to "capture" the file name of the current running SAS batch program.&lt;BR /&gt;
For example, assume SAS is run in batch and this program should create output files. Assume also the SAS code is in the following location: "c:\sas\demo1.sas". When the code runs I want to know that the path and filename - that is "c:\sas\demo1.sas".&lt;BR /&gt;
&lt;BR /&gt;
Does anyone know if this is possible?&lt;BR /&gt;
&lt;BR /&gt;
Thanks,&lt;BR /&gt;
Eyal</description>
      <pubDate>Sun, 16 Mar 2008 12:21:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Capturing-the-current-file-name-of-the-running-SAS-program/m-p/7515#M83</guid>
      <dc:creator>EyalGonen</dc:creator>
      <dc:date>2008-03-16T12:21:25Z</dc:date>
    </item>
    <item>
      <title>Re: Capturing the current file name of the running SAS program</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Capturing-the-current-file-name-of-the-running-SAS-program/m-p/7516#M84</link>
      <description>Hi,&lt;BR /&gt;
  If you go to support.sas.com and search on the string &lt;B&gt;&lt;BR /&gt;
current file name batch program&lt;/B&gt;&lt;BR /&gt;
&lt;BR /&gt;
This Tech Support note is the 3rd hit on the page&lt;BR /&gt;
&lt;A href="http://support.sas.com/kb/24/301.html" target="_blank"&gt;http://support.sas.com/kb/24/301.html&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
cynthia</description>
      <pubDate>Sun, 16 Mar 2008 12:56:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Capturing-the-current-file-name-of-the-running-SAS-program/m-p/7516#M84</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2008-03-16T12:56:05Z</dc:date>
    </item>
    <item>
      <title>Re: Capturing the current file name of the running SAS program</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Capturing-the-current-file-name-of-the-running-SAS-program/m-p/7517#M85</link>
      <description>Thanks for the prompt reply !!&lt;BR /&gt;
&lt;BR /&gt;
Eyal</description>
      <pubDate>Sun, 16 Mar 2008 13:04:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Capturing-the-current-file-name-of-the-running-SAS-program/m-p/7517#M85</guid>
      <dc:creator>EyalGonen</dc:creator>
      <dc:date>2008-03-16T13:04:18Z</dc:date>
    </item>
    <item>
      <title>Re: Capturing the current file name of the running SAS program</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Capturing-the-current-file-name-of-the-running-SAS-program/m-p/7518#M86</link>
      <description>[pre]&lt;BR /&gt;
    %let dummy = &amp;amp;sysprocessname ;&lt;BR /&gt;
    %put SysProcessName = &amp;amp;dummy ;&lt;BR /&gt;
    %put SysProcName    = &amp;amp;SysProcName ;&lt;BR /&gt;
    %put SysStartName   = &amp;amp;SysStartName ;&lt;BR /&gt;
    %put SysUserID      = &amp;amp;SysUserID ;&lt;BR /&gt;
[/pre]</description>
      <pubDate>Sun, 16 Mar 2008 17:55:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Capturing-the-current-file-name-of-the-running-SAS-program/m-p/7518#M86</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-03-16T17:55:54Z</dc:date>
    </item>
  </channel>
</rss>

