<?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: Looking for Windows option similar as UNIX option in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Looking-for-Windows-option-similar-as-UNIX-option/m-p/65225#M14158</link>
    <description>SYSPROCESNAME will return DMS Process if you're executing interactive SAS which is what (I suspect) is happening here.&lt;BR /&gt;
&lt;BR /&gt;
SYSPROCESSNAME will return the program path and filename when batch executing.&lt;BR /&gt;
&lt;BR /&gt;
You can check what SYSPROCESSNAME gives you in the LOG file but submitting "%PUT &amp;amp;SYSPROCESSNAME;" in the program editor.&lt;BR /&gt;
&lt;BR /&gt;
Lawrence

Message was edited by: LawrenceHW</description>
    <pubDate>Fri, 12 Dec 2008 16:05:25 GMT</pubDate>
    <dc:creator>LawrenceHW</dc:creator>
    <dc:date>2008-12-12T16:05:25Z</dc:date>
    <item>
      <title>Looking for Windows option similar as UNIX option</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Looking-for-Windows-option-similar-as-UNIX-option/m-p/65223#M14156</link>
      <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
1) I know a SAS code written in UNIX has used following option to print working directory in SAS output.&lt;BR /&gt;
&lt;BR /&gt;
%sysget(PWD)&lt;BR /&gt;
&lt;BR /&gt;
I am looking for similar option for windows which can print my windows directory in my SAS output. I also like to know if there is any option available, how will it print the output. It will print "C:/USER" or if I am working on shared drive it will print "//mxit12/USER".&lt;BR /&gt;
&lt;BR /&gt;
2) I also like to know the macro variable or any other option to print the name of current SAS code I am running in output. For example if I am running code jig1.sas then it will print jig1.sas in output and then next I am running jig2.sas, it should print jig2.sas in output. I thought following macro variable does the same. &lt;BR /&gt;
&lt;BR /&gt;
%sysfunc(scan(&amp;amp;SYSPROCESSNAME,2))&lt;BR /&gt;
&lt;BR /&gt;
But it always gives me "PROCESS" in return instead of SAS code name.&lt;BR /&gt;
&lt;BR /&gt;
Thanks,&lt;BR /&gt;
&lt;BR /&gt;
Jig.</description>
      <pubDate>Tue, 09 Dec 2008 14:57:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Looking-for-Windows-option-similar-as-UNIX-option/m-p/65223#M14156</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-12-09T14:57:27Z</dc:date>
    </item>
    <item>
      <title>Re: Looking for Windows option similar as UNIX option</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Looking-for-Windows-option-similar-as-UNIX-option/m-p/65224#M14157</link>
      <description>page 5 of &lt;A href="http://www2.sas.com/proceedings/forum2008/023-2008.pdf" target="_blank"&gt;http://www2.sas.com/proceedings/forum2008/023-2008.pdf&lt;/A&gt;</description>
      <pubDate>Tue, 09 Dec 2008 15:12:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Looking-for-Windows-option-similar-as-UNIX-option/m-p/65224#M14157</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-12-09T15:12:01Z</dc:date>
    </item>
    <item>
      <title>Re: Looking for Windows option similar as UNIX option</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Looking-for-Windows-option-similar-as-UNIX-option/m-p/65225#M14158</link>
      <description>SYSPROCESNAME will return DMS Process if you're executing interactive SAS which is what (I suspect) is happening here.&lt;BR /&gt;
&lt;BR /&gt;
SYSPROCESSNAME will return the program path and filename when batch executing.&lt;BR /&gt;
&lt;BR /&gt;
You can check what SYSPROCESSNAME gives you in the LOG file but submitting "%PUT &amp;amp;SYSPROCESSNAME;" in the program editor.&lt;BR /&gt;
&lt;BR /&gt;
Lawrence

Message was edited by: LawrenceHW</description>
      <pubDate>Fri, 12 Dec 2008 16:05:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Looking-for-Windows-option-similar-as-UNIX-option/m-p/65225#M14158</guid>
      <dc:creator>LawrenceHW</dc:creator>
      <dc:date>2008-12-12T16:05:25Z</dc:date>
    </item>
  </channel>
</rss>

