<?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: is it possible to use SAS EG to get a files listing of a directory located on c drive like c:\Te in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/is-it-possible-to-use-SAS-EG-to-get-a-files-listing-of-a/m-p/819470#M40917</link>
    <description>&lt;P&gt;"Not working" is awful vague.&lt;BR /&gt;&lt;BR /&gt;Are there errors in the log?: Post the code and log in a code box opened with the "&amp;lt;/&amp;gt;" to maintain formatting of error messages.&lt;BR /&gt;&lt;BR /&gt;No output? Post any log in a code box.&lt;BR /&gt;&lt;BR /&gt;Unexpected output? Provide input data in the form of data step code pasted into a code box, the actual results and the expected results. Instructions here: &lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712" target="_blank"&gt;https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712&lt;/A&gt; will show how to turn an existing SAS data set into data step code that can be pasted into a forum code box using the "&amp;lt;/&amp;gt;" icon or attached as text to show exactly what you have and that we can test code against.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Strongly suspect that your EG is connecting to a server on the network and that your local C: drive is not mapped to be seen by the server, or if it is mapped is not referred to as "C:" from the server's viewpoint.&lt;/P&gt;</description>
    <pubDate>Tue, 21 Jun 2022 21:14:57 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2022-06-21T21:14:57Z</dc:date>
    <item>
      <title>is it possible to use SAS EG to get a files listing of a directory located on c drive like c:\Temp\</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/is-it-possible-to-use-SAS-EG-to-get-a-files-listing-of-a/m-p/819457#M40913</link>
      <description>&lt;PRE&gt;filename DIRLIST pipe 'dir "C:\Temp\Temp\Temp2" /s';

data dirlist ;
     length buffer $256 ;

     infile dirlist length=reclen ;

     input buffer $varying256. reclen ;
run ;&lt;/PRE&gt;
&lt;P&gt;I have tried this code and it is not working at all.&lt;/P&gt;
&lt;P&gt;Is it possible to get the files listing of a directory hosted on c drive while using SAS EG on unix server&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jun 2022 20:22:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/is-it-possible-to-use-SAS-EG-to-get-a-files-listing-of-a/m-p/819457#M40913</guid>
      <dc:creator>alepage</dc:creator>
      <dc:date>2022-06-21T20:22:36Z</dc:date>
    </item>
    <item>
      <title>Re: is it possible to use SAS EG to get a files listing of a directory located on c drive like c:\Te</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/is-it-possible-to-use-SAS-EG-to-get-a-files-listing-of-a/m-p/819461#M40915</link>
      <description>If the directory is mapped and accessible to the Unix server, Yes.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 21 Jun 2022 20:28:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/is-it-possible-to-use-SAS-EG-to-get-a-files-listing-of-a/m-p/819461#M40915</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2022-06-21T20:28:35Z</dc:date>
    </item>
    <item>
      <title>Re: is it possible to use SAS EG to get a files listing of a directory located on c drive like c:\Te</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/is-it-possible-to-use-SAS-EG-to-get-a-files-listing-of-a/m-p/819470#M40917</link>
      <description>&lt;P&gt;"Not working" is awful vague.&lt;BR /&gt;&lt;BR /&gt;Are there errors in the log?: Post the code and log in a code box opened with the "&amp;lt;/&amp;gt;" to maintain formatting of error messages.&lt;BR /&gt;&lt;BR /&gt;No output? Post any log in a code box.&lt;BR /&gt;&lt;BR /&gt;Unexpected output? Provide input data in the form of data step code pasted into a code box, the actual results and the expected results. Instructions here: &lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712" target="_blank"&gt;https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712&lt;/A&gt; will show how to turn an existing SAS data set into data step code that can be pasted into a forum code box using the "&amp;lt;/&amp;gt;" icon or attached as text to show exactly what you have and that we can test code against.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Strongly suspect that your EG is connecting to a server on the network and that your local C: drive is not mapped to be seen by the server, or if it is mapped is not referred to as "C:" from the server's viewpoint.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jun 2022 21:14:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/is-it-possible-to-use-SAS-EG-to-get-a-files-listing-of-a/m-p/819470#M40917</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2022-06-21T21:14:57Z</dc:date>
    </item>
    <item>
      <title>Re: is it possible to use SAS EG to get a files listing of a directory located on c drive like c:\Te</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/is-it-possible-to-use-SAS-EG-to-get-a-files-listing-of-a/m-p/819613#M40924</link>
      <description>&lt;PRE&gt;&amp;nbsp;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="alepage_0-1655903956734.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/72543i736199F97788C4E1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="alepage_0-1655903956734.png" alt="alepage_0-1655903956734.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options xcmd; 
x "/mnt/c/Temp/Temp/Temp2/"; 

%let path=C:\Temp\Temp\Temp2;
%let path=/mnt/c/Temp/Temp/Temp2/;

filename DIRLIST pipe 'dir "&amp;amp;path." /s';

data dirlist ;
     length buffer $256 ;

     infile dirlist length=reclen ;

     input buffer $varying256. reclen ;
run ;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;In the first window, you will see the error messages while in the second one, you will see my SAS code.&amp;nbsp; The first %let path statement is the real location of my directory.&amp;nbsp; The second %let path statement is something I saw on the web for Unix but it does not work better.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You have mentionned that my C drive is not mapped or not visible from our Unix server.&lt;/P&gt;
&lt;P&gt;Is there anything I could do in term of SAS code to do that ?&amp;nbsp; Please note that our Unix server is access through a vpn connection.&amp;nbsp; With WinScp , it is possible to see the C drive and all the folders on our Unix server but Winscp is not SAS EG.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there a work around solution possible?&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jun 2022 13:25:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/is-it-possible-to-use-SAS-EG-to-get-a-files-listing-of-a/m-p/819613#M40924</guid>
      <dc:creator>alepage</dc:creator>
      <dc:date>2022-06-22T13:25:36Z</dc:date>
    </item>
    <item>
      <title>Re: is it possible to use SAS EG to get a files listing of a directory located on c drive like c:\Te</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/is-it-possible-to-use-SAS-EG-to-get-a-files-listing-of-a/m-p/819616#M40925</link>
      <description>&lt;P&gt;I think you will need to work with your unix admin to try and get your C: drive (or more likely a windows network drive) mounted to unix so that unix can see the files there.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Your second path you got from the internet:&lt;/P&gt;
&lt;PRE class="language-sas"&gt;&lt;CODE&gt;/mnt/c/Temp/Temp/Temp2/&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;likely shows a case where the user had mounted a windows folder to unix&amp;nbsp; ( /mnt is a common abbreviation for mount ).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;WinSCP can see your C: drive because it is running on Windows.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;EG can see your C: drive because EG is running on Windows.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When you use EG to submit SAS code to a unix server, the SAS job can only see files that are available to the unix server where it is running.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jun 2022 13:36:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/is-it-possible-to-use-SAS-EG-to-get-a-files-listing-of-a/m-p/819616#M40925</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2022-06-22T13:36:38Z</dc:date>
    </item>
    <item>
      <title>Re: is it possible to use SAS EG to get a files listing of a directory located on c drive like c:\Te</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/is-it-possible-to-use-SAS-EG-to-get-a-files-listing-of-a/m-p/819654#M40927</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/76331"&gt;@alepage&lt;/a&gt;&amp;nbsp;wrote:
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please note that our Unix server is access through a &lt;STRONG&gt;vpn connection&lt;/STRONG&gt;.&amp;nbsp; With WinScp , it is possible to see the C drive and all the folders on our Unix server but Winscp is not SAS EG.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Is there a work around solution possible?&lt;/STRONG&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;If your company has chosen to set up SAS this way through a VPN then there's likely no method to have this accomplished. This assumes you're actually using a VPN and not just a Unix Server via FTP.&lt;/P&gt;
&lt;P&gt;It requires the SAS administrator to set up the connection and to cross the VPN which is usually set up that way for a reason.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can create a file listing easily from your windows side and upload it though.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jun 2022 15:04:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/is-it-possible-to-use-SAS-EG-to-get-a-files-listing-of-a/m-p/819654#M40927</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2022-06-22T15:04:56Z</dc:date>
    </item>
  </channel>
</rss>

