<?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: Filename on Unix SAS in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Filename-on-Unix-SAS/m-p/844186#M333746</link>
    <description>&lt;P&gt;Thank you. Actual dir name is&amp;nbsp; //space/project/abc123&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 14 Nov 2022 19:09:39 GMT</pubDate>
    <dc:creator>Leo9</dc:creator>
    <dc:date>2022-11-14T19:09:39Z</dc:date>
    <item>
      <title>Filename on Unix SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Filename-on-Unix-SAS/m-p/843705#M333545</link>
      <description>&lt;P&gt;Hi am trying to run this piece of code on using EG which runs SAS on Unix server;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%let rc=%sysfunc(filename(filrf,&amp;amp;dir));&lt;BR /&gt;%put &amp;amp;filrf ;&lt;BR /&gt;%let did=%sysfunc(dopen(&amp;amp;filrf));&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For some reason the filrf is not resolving properly. I checked dir path many time and it is accurate.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also changed "\" to "/" to consider unix path.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;dir = c/temp/mydir/test&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Macro variable FILRF is getting resolved to.&amp;nbsp;"Macro variable FILRF resolves to #LN00019"&lt;/P&gt;&lt;P&gt;did is resolving to 0.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone help to suggest how to resolve this issue ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Nov 2022 00:24:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Filename-on-Unix-SAS/m-p/843705#M333545</guid>
      <dc:creator>Leo9</dc:creator>
      <dc:date>2022-11-11T00:24:28Z</dc:date>
    </item>
    <item>
      <title>Re: Filename on Unix SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Filename-on-Unix-SAS/m-p/843710#M333549</link>
      <description>&lt;P&gt;Where is this supposed to be pointing - dir = c/temp/mydir/test?&lt;/P&gt;
&lt;P&gt;If it is to your own local PC drive that isn't possible from a Unix server as no folder share has been defined. Talk to your SAS administrator about setting up a folder share that can accessed from both Windows and the Unix SAS server. Most likely that will be on a file server, not your local PC drive.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Nov 2022 01:47:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Filename-on-Unix-SAS/m-p/843710#M333549</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2022-11-11T01:47:54Z</dc:date>
    </item>
    <item>
      <title>Re: Filename on Unix SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Filename-on-Unix-SAS/m-p/843723#M333552</link>
      <description>&lt;P&gt;I am confident that you will not find this path&lt;/P&gt;
&lt;PRE&gt;c/temp/mydir/test&lt;/PRE&gt;
&lt;P&gt;on a UNIX system.&lt;/P&gt;
&lt;P&gt;If you try to do a directory listing of a&amp;nbsp;&lt;EM&gt;Windows&lt;/EM&gt; path on a&amp;nbsp;&lt;EM&gt;UNIX&lt;/EM&gt; system, this path needs to be made a network share and mounted on UNIX, where it will have a different name.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Nov 2022 07:20:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Filename-on-Unix-SAS/m-p/843723#M333552</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-11-11T07:20:57Z</dc:date>
    </item>
    <item>
      <title>Re: Filename on Unix SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Filename-on-Unix-SAS/m-p/843878#M333617</link>
      <description>&lt;P&gt;Since&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;c/temp/mydir/test&lt;/PRE&gt;
&lt;P&gt;does not start with the root node it will be considered a RELATIVE filename.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What is the current working directory?&amp;nbsp; You can ask SAS to tell you using this code:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename here '.';
%put Current Directory=%sysfunc(pathname(here)) ;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Is there really a subdirectory there named lowercase c?&lt;/P&gt;</description>
      <pubDate>Sat, 12 Nov 2022 01:50:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Filename-on-Unix-SAS/m-p/843878#M333617</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2022-11-12T01:50:28Z</dc:date>
    </item>
    <item>
      <title>Re: Filename on Unix SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Filename-on-Unix-SAS/m-p/844186#M333746</link>
      <description>&lt;P&gt;Thank you. Actual dir name is&amp;nbsp; //space/project/abc123&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Nov 2022 19:09:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Filename-on-Unix-SAS/m-p/844186#M333746</guid>
      <dc:creator>Leo9</dc:creator>
      <dc:date>2022-11-14T19:09:39Z</dc:date>
    </item>
    <item>
      <title>Re: Filename on Unix SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Filename-on-Unix-SAS/m-p/844187#M333747</link>
      <description>&lt;P&gt;You are right. I was using that as an example. Main issue is that SAS is not able to resolve the filename.&lt;/P&gt;&lt;P&gt;Dir path is something like this : //space/project/abc123&lt;/P&gt;</description>
      <pubDate>Mon, 14 Nov 2022 19:11:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Filename-on-Unix-SAS/m-p/844187#M333747</guid>
      <dc:creator>Leo9</dc:creator>
      <dc:date>2022-11-14T19:11:29Z</dc:date>
    </item>
    <item>
      <title>Re: Filename on Unix SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Filename-on-Unix-SAS/m-p/844191#M333748</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/91198"&gt;@Leo9&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Thank you. Actual dir name is&amp;nbsp; //space/project/abc123&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;You have an extra / there.&amp;nbsp; The root node in the Unix filesystem is referenced with /.&amp;nbsp; &amp;nbsp; Then you only add more / when you have a directory name.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So let's build up your path in steps:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;/ -&amp;gt; The top of the whole file system, called the root node.&lt;/P&gt;
&lt;P&gt;/space -&amp;gt; Directory under the root node&lt;/P&gt;
&lt;P&gt;/space/project -&amp;gt; Directory under the /space directory&lt;/P&gt;
&lt;P&gt;/space/project/abc123 -&amp;gt; File (or directory, a directory is just a special type of file) in the /space/project directory.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And if by the // you meant the \\ symbol that DOS/WIndows uses in UNC (&lt;A href="https://www.techtarget.com/whatis/definition/Universal-Naming-Convention-UNC#:~:text=In%20a%20network%2C%20the%20Universal,storage%20device%20it%20is%20on." target="_self"&gt;Universal Naming Convention&lt;/A&gt;&amp;nbsp;) to reference a shared network drive.&amp;nbsp; &amp;nbsp; So if you have a UNC like&amp;nbsp; \\servername\sharename\path\filename that works on Windows and you want to access that file on Unix you have the Unix admins MOUNT the \\servername\sharename (or possibly just the \\servername\sharename\path) to some location in the Unix Filesystem.&amp;nbsp; So they might make a directory named windows_shares under the root node and mount shares under there so that the path on unix might be /windows_shares/servername/sharename/path.&amp;nbsp; Or perhaps they will make directory named projects somewhere and mount your project under that directory.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Nov 2022 19:43:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Filename-on-Unix-SAS/m-p/844191#M333748</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2022-11-14T19:43:42Z</dc:date>
    </item>
    <item>
      <title>Re: Filename on Unix SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Filename-on-Unix-SAS/m-p/844240#M333767</link>
      <description>&lt;P&gt;Thank you.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Nov 2022 00:00:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Filename-on-Unix-SAS/m-p/844240#M333767</guid>
      <dc:creator>Leo9</dc:creator>
      <dc:date>2022-11-15T00:00:37Z</dc:date>
    </item>
  </channel>
</rss>

