<?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 SERVER PATH ACCES UNDER UNIX in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SAS-SERVER-PATH-ACCES-UNDER-UNIX/m-p/322574#M71376</link>
    <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/44053"&gt;@LineMoon&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;You really need to explain better what you have and what you're after. Is this directory you're talking about the folder "Files" you see in the Server tree in EG or SAS Studio?&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/6582i33875142C64CBA7C/image-size/original?v=v2&amp;amp;px=-1" border="0" alt="Capture.PNG" title="Capture.PNG" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And you would want to know the path to "Files" as set in SMC?&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/6581i0E64357AE877333E/image-size/original?v=v2&amp;amp;px=-1" border="0" alt="Capture.PNG" title="Capture.PNG" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This root path should never change once defined for a server so easiest would be to get the information from your SAS Admin.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So far I couldn't find an automatic macro variable or the like containing this root path and I want to avoid proposing to query SAS Metadata directly. May be ask your SAS Admin to define such a macro variable in the Server Context autoexec which contains this root path so you can use it programmatically.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Another way: Go to a sub-folder and add&amp;nbsp;a SAS table to your project. Then look at this SAS table's properties. That will give you the path.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 05 Jan 2017 03:25:43 GMT</pubDate>
    <dc:creator>Patrick</dc:creator>
    <dc:date>2017-01-05T03:25:43Z</dc:date>
    <item>
      <title>SAS SERVER PATH ACCES UNDER UNIX</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-SERVER-PATH-ACCES-UNDER-UNIX/m-p/322276#M71290</link>
      <description>&lt;P&gt;Hello experts,&lt;/P&gt;
&lt;P&gt;with sas under unix, the administrator define a server path acces, -it can be called $home time or other - it will be used for the allocation of library ...&lt;/P&gt;
&lt;P&gt;example &amp;nbsp;/app/server1&lt;/P&gt;
&lt;P&gt;libname lib "&lt;SPAN&gt;/app/server1/files/project01";&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Please, how can I identify this path (&amp;nbsp;/app/server1, some can be $home or not)&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jan 2017 22:53:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-SERVER-PATH-ACCES-UNDER-UNIX/m-p/322276#M71290</guid>
      <dc:creator>LineMoon</dc:creator>
      <dc:date>2017-01-03T22:53:31Z</dc:date>
    </item>
    <item>
      <title>Re: SAS SERVER PATH ACCES UNDER UNIX</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-SERVER-PATH-ACCES-UNDER-UNIX/m-p/322281#M71291</link>
      <description>&lt;P&gt;You already have the path, what do you need to identify?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The UNIX environment variable $HOME (note the capitalization) contains the absolute path to the user's home directory.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jan 2017 23:14:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-SERVER-PATH-ACCES-UNDER-UNIX/m-p/322281#M71291</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-01-03T23:14:38Z</dc:date>
    </item>
    <item>
      <title>Re: SAS SERVER PATH ACCES UNDER UNIX</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-SERVER-PATH-ACCES-UNDER-UNIX/m-p/322314#M71296</link>
      <description>&lt;PRE&gt;
Not sure if the following could work.


libname lib ".";

%put %sysfunc(pathname(lib));

&lt;/PRE&gt;</description>
      <pubDate>Wed, 04 Jan 2017 03:32:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-SERVER-PATH-ACCES-UNDER-UNIX/m-p/322314#M71296</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2017-01-04T03:32:21Z</dc:date>
    </item>
    <item>
      <title>Re: SAS SERVER PATH ACCES UNDER UNIX</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-SERVER-PATH-ACCES-UNDER-UNIX/m-p/322324#M71301</link>
      <description>&lt;P&gt;I don't really understand what you're asking for. Assuming you want to list all the UNIX/Linux environment variable which exist during as SAS session then the following code should do (not tested).&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename ll pipe 'env';
data _null_;
  infile ll;
  input;
  put _infile_;
run;
filename ll clear;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 04 Jan 2017 04:31:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-SERVER-PATH-ACCES-UNDER-UNIX/m-p/322324#M71301</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2017-01-04T04:31:33Z</dc:date>
    </item>
    <item>
      <title>Re: SAS SERVER PATH ACCES UNDER UNIX</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-SERVER-PATH-ACCES-UNDER-UNIX/m-p/322367#M71323</link>
      <description>&lt;P&gt;If you just want to get the physical path for a defined library, use the pathname() function.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jan 2017 11:07:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-SERVER-PATH-ACCES-UNDER-UNIX/m-p/322367#M71323</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-01-04T11:07:24Z</dc:date>
    </item>
    <item>
      <title>Re: SAS SERVER PATH ACCES UNDER UNIX</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-SERVER-PATH-ACCES-UNDER-UNIX/m-p/322510#M71351</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/38862"&gt;@ll&lt;/a&gt;: Thank you all for answer.&lt;/P&gt;
&lt;P&gt;No, I do not know that path which will be before every directory for allocating a sas unix library.&lt;/P&gt;
&lt;P&gt;In my question, I give "/app/server1" as example. In first, I do not know why this special Path in sas unix ? and how can we identify it ?&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jan 2017 21:54:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-SERVER-PATH-ACCES-UNDER-UNIX/m-p/322510#M71351</guid>
      <dc:creator>LineMoon</dc:creator>
      <dc:date>2017-01-04T21:54:30Z</dc:date>
    </item>
    <item>
      <title>Re: SAS SERVER PATH ACCES UNDER UNIX</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-SERVER-PATH-ACCES-UNDER-UNIX/m-p/322539#M71361</link>
      <description>&lt;P&gt;What do you mean by "identify"?&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jan 2017 23:12:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-SERVER-PATH-ACCES-UNDER-UNIX/m-p/322539#M71361</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-01-04T23:12:50Z</dc:date>
    </item>
    <item>
      <title>Re: SAS SERVER PATH ACCES UNDER UNIX</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-SERVER-PATH-ACCES-UNDER-UNIX/m-p/322574#M71376</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/44053"&gt;@LineMoon&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;You really need to explain better what you have and what you're after. Is this directory you're talking about the folder "Files" you see in the Server tree in EG or SAS Studio?&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/6582i33875142C64CBA7C/image-size/original?v=v2&amp;amp;px=-1" border="0" alt="Capture.PNG" title="Capture.PNG" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And you would want to know the path to "Files" as set in SMC?&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/6581i0E64357AE877333E/image-size/original?v=v2&amp;amp;px=-1" border="0" alt="Capture.PNG" title="Capture.PNG" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This root path should never change once defined for a server so easiest would be to get the information from your SAS Admin.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So far I couldn't find an automatic macro variable or the like containing this root path and I want to avoid proposing to query SAS Metadata directly. May be ask your SAS Admin to define such a macro variable in the Server Context autoexec which contains this root path so you can use it programmatically.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Another way: Go to a sub-folder and add&amp;nbsp;a SAS table to your project. Then look at this SAS table's properties. That will give you the path.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jan 2017 03:25:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-SERVER-PATH-ACCES-UNDER-UNIX/m-p/322574#M71376</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2017-01-05T03:25:43Z</dc:date>
    </item>
  </channel>
</rss>

