<?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: SAS command or function in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/SAS-command-or-function/m-p/548108#M8480</link>
    <description>&lt;P&gt;Enterprise Guide provides the filename of the loaded program in macro variable _sasprogramfile.&lt;/P&gt;
&lt;P&gt;Display Manager does not provide a mechanism for this.&lt;/P&gt;</description>
    <pubDate>Wed, 03 Apr 2019 06:25:03 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2019-04-03T06:25:03Z</dc:date>
    <item>
      <title>SAS command or function</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SAS-command-or-function/m-p/547776#M8432</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How can I get path of the program located in Unix server?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;John&lt;/P&gt;</description>
      <pubDate>Tue, 02 Apr 2019 00:41:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SAS-command-or-function/m-p/547776#M8432</guid>
      <dc:creator>SASSLICK001</dc:creator>
      <dc:date>2019-04-02T00:41:01Z</dc:date>
    </item>
    <item>
      <title>Re: SAS command or function</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SAS-command-or-function/m-p/547778#M8433</link>
      <description>&lt;P&gt;Start by talking to your admin.&amp;nbsp; only they know for sure because your server is your server not the worlds server.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Apr 2019 00:50:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SAS-command-or-function/m-p/547778#M8433</guid>
      <dc:creator>VDD</dc:creator>
      <dc:date>2019-04-02T00:50:49Z</dc:date>
    </item>
    <item>
      <title>Re: SAS command or function</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SAS-command-or-function/m-p/547782#M8434</link>
      <description>&lt;P&gt;I guess you are talking about getting the path via code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I found another answer to that here:&amp;nbsp;&lt;A href="https://communities.sas.com/t5/SAS-Programming/unix-sas-get-path-of-current-program/td-p/473865" target="_blank"&gt;https://communities.sas.com/t5/SAS-Programming/unix-sas-get-path-of-current-program/td-p/473865&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Pasting the accepted solution here:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;There may be other ways, but you could certainly get it from &amp;amp;PATHNAME:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let n_remove = %length(%scan(&amp;amp;pathname, -1, /));

%let pathname = %substr(&amp;amp;pathname, 1, %length(&amp;amp;pathname) - &amp;amp;n_remove - 1);&lt;/CODE&gt;&lt;/PRE&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;The extra -1 at the end removes the final / before the file name.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Apr 2019 01:02:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SAS-command-or-function/m-p/547782#M8434</guid>
      <dc:creator>heffo</dc:creator>
      <dc:date>2019-04-02T01:02:04Z</dc:date>
    </item>
    <item>
      <title>Re: SAS command or function</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SAS-command-or-function/m-p/547823#M8444</link>
      <description>&lt;P&gt;Do you run your program in batch, from Display Manager, from Enterprise Guide or from SAS Studio?&lt;/P&gt;</description>
      <pubDate>Tue, 02 Apr 2019 07:57:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SAS-command-or-function/m-p/547823#M8444</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-04-02T07:57:27Z</dc:date>
    </item>
    <item>
      <title>Re: SAS command or function</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SAS-command-or-function/m-p/547893#M8452</link>
      <description>&lt;P&gt;Sorry I was not clear, I meant to say to get the location of the sas program automatically programmatically&lt;/P&gt;</description>
      <pubDate>Tue, 02 Apr 2019 13:10:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SAS-command-or-function/m-p/547893#M8452</guid>
      <dc:creator>SASSLICK001</dc:creator>
      <dc:date>2019-04-02T13:10:49Z</dc:date>
    </item>
    <item>
      <title>Re: SAS command or function</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SAS-command-or-function/m-p/547896#M8453</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/43230"&gt;@SASSLICK001&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Sorry I was not clear, I meant to say to get the location of the sas program automatically programmatically&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;What SAS program?&lt;/P&gt;
&lt;P&gt;How are you running it?&lt;/P&gt;
&lt;P&gt;If you just open interactive SAS and type in some code and submit it there is no program file to find.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Apr 2019 13:13:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SAS-command-or-function/m-p/547896#M8453</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-04-02T13:13:41Z</dc:date>
    </item>
    <item>
      <title>Re: SAS command or function</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SAS-command-or-function/m-p/547904#M8455</link>
      <description>I run the program from display manager or Enterprise guide. when the program executes it should get the location of the program where it resides automatically</description>
      <pubDate>Tue, 02 Apr 2019 14:03:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SAS-command-or-function/m-p/547904#M8455</guid>
      <dc:creator>SASSLICK001</dc:creator>
      <dc:date>2019-04-02T14:03:26Z</dc:date>
    </item>
    <item>
      <title>Re: SAS command or function</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SAS-command-or-function/m-p/547905#M8456</link>
      <description>I mean saved program in the unix directory&lt;BR /&gt;ex: /opt/level1/level2/level3/level4</description>
      <pubDate>Tue, 02 Apr 2019 14:15:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SAS-command-or-function/m-p/547905#M8456</guid>
      <dc:creator>SASSLICK001</dc:creator>
      <dc:date>2019-04-02T14:15:34Z</dc:date>
    </item>
    <item>
      <title>Re: SAS command or function</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SAS-command-or-function/m-p/548108#M8480</link>
      <description>&lt;P&gt;Enterprise Guide provides the filename of the loaded program in macro variable _sasprogramfile.&lt;/P&gt;
&lt;P&gt;Display Manager does not provide a mechanism for this.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Apr 2019 06:25:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SAS-command-or-function/m-p/548108#M8480</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-04-03T06:25:03Z</dc:date>
    </item>
  </channel>
</rss>

