<?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 save path name in a macro variable in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/save-path-name-in-a-macro-variable/m-p/73283#M15757</link>
    <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
If I use the following code and batch submit it, I would get the path of the SAS program. Is there any easy way I can save this path in a macro variable?&lt;BR /&gt;
&lt;BR /&gt;
proc options option=sysin; run;&lt;BR /&gt;
&lt;BR /&gt;
Thanks!</description>
    <pubDate>Mon, 09 Feb 2009 22:32:12 GMT</pubDate>
    <dc:creator>NickR</dc:creator>
    <dc:date>2009-02-09T22:32:12Z</dc:date>
    <item>
      <title>save path name in a macro variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/save-path-name-in-a-macro-variable/m-p/73283#M15757</link>
      <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
If I use the following code and batch submit it, I would get the path of the SAS program. Is there any easy way I can save this path in a macro variable?&lt;BR /&gt;
&lt;BR /&gt;
proc options option=sysin; run;&lt;BR /&gt;
&lt;BR /&gt;
Thanks!</description>
      <pubDate>Mon, 09 Feb 2009 22:32:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/save-path-name-in-a-macro-variable/m-p/73283#M15757</guid>
      <dc:creator>NickR</dc:creator>
      <dc:date>2009-02-09T22:32:12Z</dc:date>
    </item>
    <item>
      <title>Re: save path name in a macro variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/save-path-name-in-a-macro-variable/m-p/73284#M15758</link>
      <description>One possibility, that should suffice for batch jobs.&lt;BR /&gt;
&lt;BR /&gt;
[pre]&lt;BR /&gt;
%let sysin = %sysfunc(getoption(sysin));&lt;BR /&gt;
%put NOTE: SYSIN=&amp;amp;sysin;&lt;BR /&gt;
[/pre]</description>
      <pubDate>Mon, 09 Feb 2009 22:44:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/save-path-name-in-a-macro-variable/m-p/73284#M15758</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2009-02-09T22:44:19Z</dc:date>
    </item>
    <item>
      <title>Re: save path name in a macro variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/save-path-name-in-a-macro-variable/m-p/73285#M15759</link>
      <description>this works for me...thanks so very much.</description>
      <pubDate>Mon, 09 Feb 2009 23:11:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/save-path-name-in-a-macro-variable/m-p/73285#M15759</guid>
      <dc:creator>NickR</dc:creator>
      <dc:date>2009-02-09T23:11:18Z</dc:date>
    </item>
  </channel>
</rss>

