<?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 Read Filenames Off Of Corporate Share Drive From EG in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Read-Filenames-Off-Of-Corporate-Share-Drive-From-EG/m-p/48859#M5371</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EGuide is running on your PC, but your SAS server is in the Unix environment.&amp;nbsp; You need to rewrite the dirname to follow Unix conventions (not the PC-mapped drive letter) and change the 'dir' to an "ls" (also to follow the Unix conventions).&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Doc Muhlbaier&lt;/P&gt;&lt;P&gt;Duke&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 08 Feb 2012 17:01:58 GMT</pubDate>
    <dc:creator>Doc_Duke</dc:creator>
    <dc:date>2012-02-08T17:01:58Z</dc:date>
    <item>
      <title>Read Filenames Off Of Corporate Share Drive From EG</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Read-Filenames-Off-Of-Corporate-Share-Drive-From-EG/m-p/48858#M5370</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;EG: SAS Enterprise Guide 4.1 (4.1.0.1019)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to read in *.pdf file names off of our corporate share drives from EG / UNIX and create a SAS Dataset with the names.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The mapped share I need to connect to from EG has this type of string when mapped: abcdefghij on 'Shared File Server (AAAAA-bbb-999)' (That is how it looks mapped to my B: Drive)&lt;/P&gt;&lt;P&gt;There is a folder structure under that that looks like ... B:\Level1\Level2\Level3\*.pdf&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below code is what I have for PC SAS where I have access to the Mapped Drive (B:) and it works perfect.&lt;/P&gt;&lt;P&gt;I need to connect to the Share Drive and be able to do the same from EG running on the UNIX box..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Below Works Fine:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;%let dirname = B:\scorecards\12-2011_Data\Scorecards_Dec11_Data_V1;&lt;BR /&gt;filename DIRLIST pipe "dir /B &amp;amp;dirname\*.pdf";&lt;/P&gt;&lt;P&gt;data dirlist ;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; length fname $256; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; infile dirlist length=reclen ;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; input fname $varying256. reclen ;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I run the above code on EG I get a DirList SAS DataSet with the following value in the fname field: /bin/ksh: dir:&amp;nbsp; not found&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;TIA, J&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Feb 2012 16:41:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Read-Filenames-Off-Of-Corporate-Share-Drive-From-EG/m-p/48858#M5370</guid>
      <dc:creator>JaySwan</dc:creator>
      <dc:date>2012-02-08T16:41:54Z</dc:date>
    </item>
    <item>
      <title>Read Filenames Off Of Corporate Share Drive From EG</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Read-Filenames-Off-Of-Corporate-Share-Drive-From-EG/m-p/48859#M5371</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EGuide is running on your PC, but your SAS server is in the Unix environment.&amp;nbsp; You need to rewrite the dirname to follow Unix conventions (not the PC-mapped drive letter) and change the 'dir' to an "ls" (also to follow the Unix conventions).&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Doc Muhlbaier&lt;/P&gt;&lt;P&gt;Duke&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Feb 2012 17:01:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Read-Filenames-Off-Of-Corporate-Share-Drive-From-EG/m-p/48859#M5371</guid>
      <dc:creator>Doc_Duke</dc:creator>
      <dc:date>2012-02-08T17:01:58Z</dc:date>
    </item>
    <item>
      <title>Read Filenames Off Of Corporate Share Drive From EG</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Read-Filenames-Off-Of-Corporate-Share-Drive-From-EG/m-p/48860#M5372</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="background-color: #eef4f9;"&gt;If B: is mapped to "abcdefghij on 'Shared File Server (AAAAA-bbb-999)"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then from the PC you should be able to refer to it as \\AAAAA-bbb-999\abcdefhij\ instead of B:\.&lt;/P&gt;&lt;P&gt;But from you Unix server there is probably a mount point that would make this visable from the Unix processes.&amp;nbsp; They might have mounted as something like /net/AAAAA-bbb-999/abcdefghij/ , but you need to check with the Unix admin to see exactly how to find the same data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Feb 2012 18:37:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Read-Filenames-Off-Of-Corporate-Share-Drive-From-EG/m-p/48860#M5372</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2012-02-08T18:37:40Z</dc:date>
    </item>
  </channel>
</rss>

