<?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: How do you specify local directory when using SAS EG for including a file? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-do-you-specify-local-directory-when-using-SAS-EG-for/m-p/506567#M135813</link>
    <description>&lt;P&gt;Is your SAS installed locally (not EG) ?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here are the way to check.&lt;/P&gt;
&lt;P&gt;- Do you see Local under servers in EG? If yes then locally installed.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;-&amp;nbsp;Run PROC SETINIT; RUN; and see the operating system in log.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;WARNING: Physical file does not exist, /sasdata/work/sasuser/rolap/sas_pwd.sas.&lt;/PRE&gt;
&lt;P&gt;Looking at your log I can say that your SAS is installed on Unix or Linux server (looking at the path). If you don't give fully qualified physical path then SAS ready from the default (in your case "/sasdata/work/sasuser/rolap/").&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Your EG is connecting to the Server and runs your programs in server not in your local machine. In order to read anything from your local machine to Server or vice versa they need to be connected each other. In most organizations a drive will be mount to server which can be added in local machine as network drive. You may need to contact your admins or colleagues to find that out.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can also transfer files between the server and local machine using open SSH like Putty or WinSCP. Try WinSCP if you have given access to the server.&lt;/P&gt;</description>
    <pubDate>Mon, 22 Oct 2018 18:49:21 GMT</pubDate>
    <dc:creator>SuryaKiran</dc:creator>
    <dc:date>2018-10-22T18:49:21Z</dc:date>
    <item>
      <title>How do you specify local directory when using SAS EG for including a file?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-you-specify-local-directory-when-using-SAS-EG-for/m-p/506535#M135806</link>
      <description>&lt;P&gt;&amp;nbsp;Hi We're using SAS EG V 7.13 HF1 (7.100.3.5419) (64-bit).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm running a script from a local Windows directory. I have a file called sas_pwd.sas I'm referencing in the command:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%include 'sas_pwd.sas';&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However it's not being picked up by my SAS script.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm getting the following error message.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;24         %include 'sas_pwd.sas';
WARNING: Physical file does not exist, /sasdata/work/sasuser/rolap/sas_pwd.sas.
ERROR: Cannot open %INCLUDE file sas_pwd.sas.&lt;/PRE&gt;&lt;P&gt;Which is in my home directory for SAS.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So how can I either have the script point to the file on my local machine where it's in the directory say: c:\mydir\me&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;or how can I have the script find the file ion the Linux server where it's in say /home/rolap/?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you can answer to both that'd be a bonus.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Oct 2018 17:13:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-you-specify-local-directory-when-using-SAS-EG-for/m-p/506535#M135806</guid>
      <dc:creator>Tater_Salad</dc:creator>
      <dc:date>2018-10-22T17:13:39Z</dc:date>
    </item>
    <item>
      <title>How do you specify local directory when using SAS EG for including a file?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-you-specify-local-directory-when-using-SAS-EG-for/m-p/506540#M135811</link>
      <description>&lt;P&gt;Hi We're using SAS EG V 7.13 HF1 (7.100.3.5419) (64-bit).&lt;/P&gt;&lt;P&gt;I'm running a script from a local Windows directory. I have a file called sas_pwd.sas I'm referencing in the command:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;%include 'sas_pwd.sas';&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;However it's not being picked up by my SAS script.&lt;/P&gt;&lt;P&gt;I'm getting the following error message.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;24         %include 'sas_pwd.sas';
WARNING: Physical file does not exist, /sasdata/work/sasuser/rolap/sas_pwd.sas.
ERROR: Cannot open %INCLUDE file sas_pwd.sas.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Which is in my home directory for SAS.&lt;/P&gt;&lt;P&gt;So how can I either have the script point to the file on my local machine where it's in the directory say: c:\mydir\me&lt;/P&gt;&lt;P&gt;or how can I have the script find the file ion the Linux server where it's in say /home/rolap/?&lt;/P&gt;&lt;P&gt;If you can answer to both that'd be a bonus.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Oct 2018 17:26:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-you-specify-local-directory-when-using-SAS-EG-for/m-p/506540#M135811</guid>
      <dc:creator>Tater_Salad</dc:creator>
      <dc:date>2018-10-22T17:26:21Z</dc:date>
    </item>
    <item>
      <title>Re: How do you specify local directory when using SAS EG for including a file?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-you-specify-local-directory-when-using-SAS-EG-for/m-p/506545#M135810</link>
      <description>Your EG installation is set up to be a server installation which means you need to work off the server. To see local files, you would need to move the files to a directory the server and your local computer has access to. Then you can move the file to that location and use it. You can upload files or import via the GUI without issue, but scripting is difficult.&lt;BR /&gt;&lt;BR /&gt;If you can run locally, at the top where's the RUN button, you can usually click Run Locally/Server. You cannot switch between the two within a process or program though. &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Yes this is a huge pain. Hopefully I'm wrong and someone more versed in EG corrects me &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;</description>
      <pubDate>Mon, 22 Oct 2018 17:34:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-you-specify-local-directory-when-using-SAS-EG-for/m-p/506545#M135810</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-10-22T17:34:29Z</dc:date>
    </item>
    <item>
      <title>Re: How do you specify local directory when using SAS EG for including a file?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-you-specify-local-directory-when-using-SAS-EG-for/m-p/506567#M135813</link>
      <description>&lt;P&gt;Is your SAS installed locally (not EG) ?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here are the way to check.&lt;/P&gt;
&lt;P&gt;- Do you see Local under servers in EG? If yes then locally installed.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;-&amp;nbsp;Run PROC SETINIT; RUN; and see the operating system in log.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;WARNING: Physical file does not exist, /sasdata/work/sasuser/rolap/sas_pwd.sas.&lt;/PRE&gt;
&lt;P&gt;Looking at your log I can say that your SAS is installed on Unix or Linux server (looking at the path). If you don't give fully qualified physical path then SAS ready from the default (in your case "/sasdata/work/sasuser/rolap/").&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Your EG is connecting to the Server and runs your programs in server not in your local machine. In order to read anything from your local machine to Server or vice versa they need to be connected each other. In most organizations a drive will be mount to server which can be added in local machine as network drive. You may need to contact your admins or colleagues to find that out.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can also transfer files between the server and local machine using open SSH like Putty or WinSCP. Try WinSCP if you have given access to the server.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Oct 2018 18:49:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-you-specify-local-directory-when-using-SAS-EG-for/m-p/506567#M135813</guid>
      <dc:creator>SuryaKiran</dc:creator>
      <dc:date>2018-10-22T18:49:21Z</dc:date>
    </item>
    <item>
      <title>Re: How do you specify local directory when using SAS EG for including a file?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-you-specify-local-directory-when-using-SAS-EG-for/m-p/506575#M135814</link>
      <description>&lt;P&gt;If you want your Unix machine to see your local drive then export it and have the system admin mount it somewhere on your Linux machines file system.&amp;nbsp; Most unix admins will not permit this and you probably don't want to permit it either.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Otherwise just access files that are on your linux machine already.&amp;nbsp; Or upload the files using a file upload task in your Enterprise Guide process flow.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If the files are in your home directory you can normally reference that using ~.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt; %include '~/sas_pwd.sas';&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Oct 2018 19:08:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-you-specify-local-directory-when-using-SAS-EG-for/m-p/506575#M135814</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2018-10-22T19:08:08Z</dc:date>
    </item>
    <item>
      <title>Re: How do you specify local directory when using SAS EG for including a file?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-you-specify-local-directory-when-using-SAS-EG-for/m-p/506584#M135815</link>
      <description>&lt;P&gt;As&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/159"&gt;@Tom&lt;/a&gt;&amp;nbsp;mentioned you can use "Copy files" in EG instead of additional WinSCP or some other SSH. Here are the some useful links for Copy file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://blogs.sas.com/content/sasdummy/2012/12/06/copy-files-in-sas-eg/&amp;nbsp;" target="_blank"&gt;https://blogs.sas.com/content/sasdummy/2012/12/06/copy-files-in-sas-eg/&amp;nbsp;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://blogs.sas.com/content/sasdummy/2016/11/14/copy-files-task-moved-menus/" target="_blank"&gt;https://blogs.sas.com/content/sasdummy/2016/11/14/copy-files-task-moved-menus/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Oct 2018 19:28:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-you-specify-local-directory-when-using-SAS-EG-for/m-p/506584#M135815</guid>
      <dc:creator>SuryaKiran</dc:creator>
      <dc:date>2018-10-22T19:28:33Z</dc:date>
    </item>
  </channel>
</rss>

