<?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 How do i access a windows folder from EG on Unix machine in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-do-i-access-a-windows-folder-from-EG-on-Unix-machine/m-p/185745#M14231</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Im using the EG over a Citrix Client from my windows pc.&lt;/P&gt;&lt;P&gt;I would like to open a folder located on windows within the EG. (I would like to open this folder and read all items (csv-files) in it for further processings)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Am I unable to access the windows folder from two different environments?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here are essential lines of code:&lt;/P&gt;&lt;P&gt;%macro read_directory();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%let path = I:\xxx\xxx\xxx\xxx\xxxxx;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%global lstname;&lt;/P&gt;&lt;P&gt;%let member = 1;&lt;/P&gt;&lt;P&gt;filename dir "&amp;amp;path\*";&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%let filrf = mydir;&lt;/P&gt;&lt;P&gt;%let rc=%sysfunc(filename(filrf,&amp;amp;path));&lt;/P&gt;&lt;P&gt;%let did=%sysfunc(dopen(&amp;amp;filrf));&lt;/P&gt;&lt;P&gt;%let memcount=%sysfunc(dnum(&amp;amp;did));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%if &amp;amp;memcount &amp;gt; 0 %then %do;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; %do %while(&amp;amp;member le &amp;amp;memcount);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; %let lstname=%sysfunc(dread(&amp;amp;did, &amp;amp;member));&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; %end;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%end;&lt;/P&gt;&lt;P&gt;%let rc=%sysfunc(dclose(&amp;amp;did));&lt;/P&gt;&lt;P&gt;%mend;&lt;/P&gt;&lt;P&gt;%read_directory;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the path resolves to:&lt;/P&gt;&lt;P&gt;ERROR: Physical file does not exist, /opt/sas/config/Lev1/SASApp/I:\xxx\xxx\xxx\xxx\xxxxx;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Im pretty new in accessing data from different machines- i hope some of you can help me how to tell the EG that its has to refer to windows only&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 04 Sep 2014 09:57:24 GMT</pubDate>
    <dc:creator>asdf_sas</dc:creator>
    <dc:date>2014-09-04T09:57:24Z</dc:date>
    <item>
      <title>How do i access a windows folder from EG on Unix machine</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-do-i-access-a-windows-folder-from-EG-on-Unix-machine/m-p/185745#M14231</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Im using the EG over a Citrix Client from my windows pc.&lt;/P&gt;&lt;P&gt;I would like to open a folder located on windows within the EG. (I would like to open this folder and read all items (csv-files) in it for further processings)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Am I unable to access the windows folder from two different environments?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here are essential lines of code:&lt;/P&gt;&lt;P&gt;%macro read_directory();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%let path = I:\xxx\xxx\xxx\xxx\xxxxx;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%global lstname;&lt;/P&gt;&lt;P&gt;%let member = 1;&lt;/P&gt;&lt;P&gt;filename dir "&amp;amp;path\*";&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%let filrf = mydir;&lt;/P&gt;&lt;P&gt;%let rc=%sysfunc(filename(filrf,&amp;amp;path));&lt;/P&gt;&lt;P&gt;%let did=%sysfunc(dopen(&amp;amp;filrf));&lt;/P&gt;&lt;P&gt;%let memcount=%sysfunc(dnum(&amp;amp;did));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%if &amp;amp;memcount &amp;gt; 0 %then %do;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; %do %while(&amp;amp;member le &amp;amp;memcount);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; %let lstname=%sysfunc(dread(&amp;amp;did, &amp;amp;member));&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; %end;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%end;&lt;/P&gt;&lt;P&gt;%let rc=%sysfunc(dclose(&amp;amp;did));&lt;/P&gt;&lt;P&gt;%mend;&lt;/P&gt;&lt;P&gt;%read_directory;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the path resolves to:&lt;/P&gt;&lt;P&gt;ERROR: Physical file does not exist, /opt/sas/config/Lev1/SASApp/I:\xxx\xxx\xxx\xxx\xxxxx;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Im pretty new in accessing data from different machines- i hope some of you can help me how to tell the EG that its has to refer to windows only&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Sep 2014 09:57:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-do-i-access-a-windows-folder-from-EG-on-Unix-machine/m-p/185745#M14231</guid>
      <dc:creator>asdf_sas</dc:creator>
      <dc:date>2014-09-04T09:57:24Z</dc:date>
    </item>
    <item>
      <title>Re: How do i access a windows folder from EG on Unix machine</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-do-i-access-a-windows-folder-from-EG-on-Unix-machine/m-p/185746#M14232</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The Workspace Server that actually runs the SAS code generated by the Enterprise Guide resides on a UNIX server.&lt;/P&gt;&lt;P&gt;In order to access files on your local computer, you need to have at least a part of your filesystem accessible (mounted) on the UNIX server and must use the correct syntax as shown in the first part (/opt/sas/config/Lev1/SASApp) of the offending file path.&lt;/P&gt;&lt;P&gt;This directory is actually the one from which the Workspace Server process is started; since a Windows file name does not meet the requirements of a fully qualified UNIX file name (ie starts with a forward slash), your given file path was simply appended to the current working directory.&lt;/P&gt;&lt;P&gt;You may have a network path on a network file server that is both visible from your desktop and the UNIX server, so you could place your files there.&lt;/P&gt;&lt;P&gt;Still another method would be to use a tool like WinSCP to copy the file(s) to your home directory on the UNIX server and then use $HOME/&lt;EM&gt;filename&lt;/EM&gt; in the macro variable path.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Sep 2014 10:16:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-do-i-access-a-windows-folder-from-EG-on-Unix-machine/m-p/185746#M14232</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2014-09-04T10:16:50Z</dc:date>
    </item>
    <item>
      <title>Re: How do i access a windows folder from EG on Unix machine</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-do-i-access-a-windows-folder-from-EG-on-Unix-machine/m-p/185747#M14233</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Being on Citrix, you might have limited ability to add a custom task to your EG environment.&amp;nbsp; However, there is a useful "Copy Files" task that can help you to move files between your SAS session on UNIX and your EG Windows environment:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://blogs.sas.com/content/sasdummy/2012/12/06/copy-files-in-sas-eg/" title="http://blogs.sas.com/content/sasdummy/2012/12/06/copy-files-in-sas-eg/"&gt; There and back again: copying files in SAS Enterprise Guide - The SAS Dummy&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Sep 2014 12:16:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-do-i-access-a-windows-folder-from-EG-on-Unix-machine/m-p/185747#M14233</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2014-09-04T12:16:49Z</dc:date>
    </item>
  </channel>
</rss>

