<?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: Unable To  switch to a specific directory using call system routine in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Unable-To-switch-to-a-specific-directory-using-call-system/m-p/626121#M184630</link>
    <description>The userid is the owner and also a part of the owning group..&lt;BR /&gt;&lt;BR /&gt;For others it was r_x not r_w. Sorry ..it was typo</description>
    <pubDate>Thu, 20 Feb 2020 12:05:03 GMT</pubDate>
    <dc:creator>vijayanand</dc:creator>
    <dc:date>2020-02-20T12:05:03Z</dc:date>
    <item>
      <title>Unable To  switch to a specific directory using call system routine</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Unable-To-switch-to-a-specific-directory-using-call-system/m-p/626100#M184616</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We have a sas application running in a Linux server. This Linux server has an external NFS mount and one of the sas programs is trying to list the contents of a folder in the NFS mount. In the below example, I can do &lt;BR /&gt;“cd /PARENTFOLDER” but not ("cd /PARENTFOLDER/SUBFOLDER ").The access levels on SUBFOLDER are 775 (rwxrwxr_w). The userid&amp;nbsp; with which the program is being executed has full permission (rwx) on this folder. Not sure why it is still not accessible thru program. However, this path is accessible directly on the server with the same userid.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;data _null_;&lt;BR /&gt;call system ("cd /PARENTFOLDER/SUBFOLDER ");&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;This NFS mount is common to another Unix server and my sas program from the unix server is able access this location programmatically.&lt;/P&gt;
&lt;P&gt;Any help could be much appreciated.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks..&lt;/P&gt;</description>
      <pubDate>Thu, 20 Feb 2020 11:29:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Unable-To-switch-to-a-specific-directory-using-call-system/m-p/626100#M184616</guid>
      <dc:creator>vijayanand</dc:creator>
      <dc:date>2020-02-20T11:29:01Z</dc:date>
    </item>
    <item>
      <title>Re: Unable To  switch to a specific directory using call system routine</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Unable-To-switch-to-a-specific-directory-using-call-system/m-p/626107#M184621</link>
      <description>&lt;P&gt;Is the userid the owner or part of the folder owning group?&lt;/P&gt;
&lt;P&gt;Also, for &lt;EM&gt;other&lt;/EM&gt;, rw makes no sense since you need execution rights on a folder to be able to access it.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Feb 2020 11:46:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Unable-To-switch-to-a-specific-directory-using-call-system/m-p/626107#M184621</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2020-02-20T11:46:52Z</dc:date>
    </item>
    <item>
      <title>Re: Unable To  switch to a specific directory using call system routine</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Unable-To-switch-to-a-specific-directory-using-call-system/m-p/626113#M184625</link>
      <description>&lt;P&gt;Did you considered DLGCDIR() function?&lt;BR /&gt;&lt;BR /&gt;All the best&lt;BR /&gt;Bart&lt;/P&gt;</description>
      <pubDate>Thu, 20 Feb 2020 11:56:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Unable-To-switch-to-a-specific-directory-using-call-system/m-p/626113#M184625</guid>
      <dc:creator>yabwon</dc:creator>
      <dc:date>2020-02-20T11:56:50Z</dc:date>
    </item>
    <item>
      <title>Re: Unable To  switch to a specific directory using call system routine</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Unable-To-switch-to-a-specific-directory-using-call-system/m-p/626121#M184630</link>
      <description>The userid is the owner and also a part of the owning group..&lt;BR /&gt;&lt;BR /&gt;For others it was r_x not r_w. Sorry ..it was typo</description>
      <pubDate>Thu, 20 Feb 2020 12:05:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Unable-To-switch-to-a-specific-directory-using-call-system/m-p/626121#M184630</guid>
      <dc:creator>vijayanand</dc:creator>
      <dc:date>2020-02-20T12:05:03Z</dc:date>
    </item>
    <item>
      <title>Re: Unable To  switch to a specific directory using call system routine</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Unable-To-switch-to-a-specific-directory-using-call-system/m-p/626131#M184636</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The problem is not with the cd command. It is getting into the given path , but&amp;nbsp; it is coming out immediately.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;data _null_;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;call system ("cd /PARENTFOLDER/SUBFOLDER ");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;run;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;after the cd command I am running the below command. It seems I am losing the path and it is listing the contents from directory where sas is launched from.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;filename datafile pipe " ls -p | grep -v / ";&lt;/P&gt;</description>
      <pubDate>Thu, 20 Feb 2020 13:20:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Unable-To-switch-to-a-specific-directory-using-call-system/m-p/626131#M184636</guid>
      <dc:creator>vijayanand</dc:creator>
      <dc:date>2020-02-20T13:20:20Z</dc:date>
    </item>
    <item>
      <title>Re: Unable To  switch to a specific directory using call system routine</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Unable-To-switch-to-a-specific-directory-using-call-system/m-p/626133#M184637</link>
      <description>&lt;P&gt;Run your command with a pipe, and inspect the log:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
infile "cd /PARENTFOLDER/SUBFOLDER 2&amp;gt;&amp;amp;1" pipe;
input;
put _infile_;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 20 Feb 2020 13:32:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Unable-To-switch-to-a-specific-directory-using-call-system/m-p/626133#M184637</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-02-20T13:32:24Z</dc:date>
    </item>
  </channel>
</rss>

