<?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 How to get SAS File name in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-get-SAS-File-name/m-p/130418#M294886</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am executing multiple SAS code which are to heavy .&lt;/P&gt;&lt;P&gt;I am storing the Logs to an extenal text file. system is creating many log file i am confused which program is having which log file. So , Which i want to do is when i execute a SAS code by name firstprogram.SAS same name is to be taken by Log file fristprogram.log. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;SASPro&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 06 May 2013 13:49:29 GMT</pubDate>
    <dc:creator>SasPro</dc:creator>
    <dc:date>2013-05-06T13:49:29Z</dc:date>
    <item>
      <title>How to get SAS File name</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-get-SAS-File-name/m-p/130418#M294886</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am executing multiple SAS code which are to heavy .&lt;/P&gt;&lt;P&gt;I am storing the Logs to an extenal text file. system is creating many log file i am confused which program is having which log file. So , Which i want to do is when i execute a SAS code by name firstprogram.SAS same name is to be taken by Log file fristprogram.log. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;SASPro&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 May 2013 13:49:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-get-SAS-File-name/m-p/130418#M294886</guid>
      <dc:creator>SasPro</dc:creator>
      <dc:date>2013-05-06T13:49:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to get SAS File name</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-get-SAS-File-name/m-p/130419#M294887</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How are you executing the programs.&amp;nbsp; If you have a program stored as a .sas file (say filename.sas) and execute it from the command line using command syntax like:&amp;nbsp; sas filename then SAS will automatically name the log file as filename.log .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 May 2013 14:07:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-get-SAS-File-name/m-p/130419#M294887</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2013-05-06T14:07:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to get SAS File name</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-get-SAS-File-name/m-p/130420#M294888</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tom,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks you Tom for getting back&lt;/P&gt;&lt;P&gt;I am executing the code by submit button(F3)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 May 2013 14:10:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-get-SAS-File-name/m-p/130420#M294888</guid>
      <dc:creator>SasPro</dc:creator>
      <dc:date>2013-05-06T14:10:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to get SAS File name</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-get-SAS-File-name/m-p/130421#M294889</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;%let x= %sysget(SAS_EXECFILENAME);&lt;/P&gt;&lt;P&gt;%put &amp;amp;x ;&lt;/P&gt;&lt;P&gt;%let y= %sysget(SAS_EXECFILEPATH);&lt;/P&gt;&lt;P&gt;%put &amp;amp;y ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ksharp&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 May 2013 14:27:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-get-SAS-File-name/m-p/130421#M294889</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2013-05-06T14:27:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to get SAS File name</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-get-SAS-File-name/m-p/130422#M294890</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank u Ksharp&lt;/P&gt;&lt;P&gt;i am geting filename.SAS i wan to remove the extension.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 May 2013 14:32:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-get-SAS-File-name/m-p/130422#M294890</guid>
      <dc:creator>SasPro</dc:creator>
      <dc:date>2013-05-06T14:32:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to get SAS File name</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-get-SAS-File-name/m-p/130423#M294891</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey i got it&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%let name = %sysfunc(scan(%sysget(SAS_EXECFILENAME),1,'.'));&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 May 2013 14:45:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-get-SAS-File-name/m-p/130423#M294891</guid>
      <dc:creator>SasPro</dc:creator>
      <dc:date>2013-05-06T14:45:06Z</dc:date>
    </item>
  </channel>
</rss>

