<?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: %INCLUDE statement on Linux with uppercase pathname in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/INCLUDE-statement-on-Linux-with-uppercase-pathname/m-p/274357#M54725</link>
    <description>&lt;P&gt;Can you run some Unix commands from SAS to see what is going on?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
   input cmd $80. ;
   infile cmd pipe filevar=cmd end=eof;
   put cmd=;
   do while (not eof);
      input ;
      put _infile_;
   end;
cards;
pwd
ls -ld ~
ls -ld /server1/home
ls -ld /SERVER1/home
;;;;

&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 01 Jun 2016 13:52:05 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2016-06-01T13:52:05Z</dc:date>
    <item>
      <title>%INCLUDE statement on Linux with uppercase pathname</title>
      <link>https://communities.sas.com/t5/SAS-Programming/INCLUDE-statement-on-Linux-with-uppercase-pathname/m-p/274338#M54722</link>
      <description>&lt;P&gt;&amp;nbsp;I am trying to use an %INCLUDE statement on Linux with an uppercase pathname (which is forced on me, because all user directories start like this). I keep getting "WARNING: Physical file does not exist, '/server1/home/ms/userx/file.txt'. ERROR: Cannot open %INCLUDE file INCL1.", so I assume the problem is with the uppercase pathname, I thought from the documentation that this should be fine if I use quotation marks (I also tried "..." instead of '...' - what I do below works in an interactive session using "...", but not '...', but somehow in batch mode neither seems to work). Or is it something else that I am doing wrong??&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My code is something like&lt;/P&gt;
&lt;PRE&gt;%macro test(a);&lt;BR /&gt;filename incl1 '/SERVER1/home/ms/userx/file.txt';&lt;BR /&gt;proc iml;
  %include inc1;
quit;&lt;BR /&gt;%mend;&lt;BR /&gt;%test(a=1);&lt;/PRE&gt;
&lt;P&gt;and I also&amp;nbsp;tried&lt;/P&gt;
&lt;PRE&gt;%macro test(a);&lt;BR /&gt;proc iml;
  %include '/SERVER1/home/ms/userx/file.txt';
quit;&lt;BR /&gt;%mend;&lt;BR /&gt;%test(a=1);&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I cannot really get around using an include statement, because I need to use a submit statement in PROC IML in order to run some R code via PROC IML (and it appears I cannot have my submit/endsubmit code inside a macro, which this needs to be embedden in for some other reasons to do with parallelizing some simulations). The content of file.txt is some R code plus the submit/endsubmit statements, say:&lt;/P&gt;
&lt;PRE&gt;submit / R;
abc &amp;lt;- 1:15
endsubmit;&lt;/PRE&gt;</description>
      <pubDate>Wed, 01 Jun 2016 13:07:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/INCLUDE-statement-on-Linux-with-uppercase-pathname/m-p/274338#M54722</guid>
      <dc:creator>BjoernHolzhauer</dc:creator>
      <dc:date>2016-06-01T13:07:23Z</dc:date>
    </item>
    <item>
      <title>Re: %INCLUDE statement on Linux with uppercase pathname</title>
      <link>https://communities.sas.com/t5/SAS-Programming/INCLUDE-statement-on-Linux-with-uppercase-pathname/m-p/274342#M54723</link>
      <description>&lt;P&gt;Are you 100% sure that this file exists with your spelling/casing?&lt;/P&gt;
&lt;P&gt;And the user that executes the SAS program has access?&lt;/P&gt;
&lt;P&gt;Just to rule out the possibility of that is the error message that change the case, not the filename/%include...&lt;/P&gt;
&lt;P&gt;Have you tried other files/locations?&lt;/P&gt;</description>
      <pubDate>Wed, 01 Jun 2016 13:19:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/INCLUDE-statement-on-Linux-with-uppercase-pathname/m-p/274342#M54723</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2016-06-01T13:19:16Z</dc:date>
    </item>
    <item>
      <title>Re: %INCLUDE statement on Linux with uppercase pathname</title>
      <link>https://communities.sas.com/t5/SAS-Programming/INCLUDE-statement-on-Linux-with-uppercase-pathname/m-p/274343#M54724</link>
      <description>&lt;P&gt;Can you use ~ to represent /home/username/&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%inc '~/file.txt';&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 01 Jun 2016 13:20:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/INCLUDE-statement-on-Linux-with-uppercase-pathname/m-p/274343#M54724</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2016-06-01T13:20:20Z</dc:date>
    </item>
    <item>
      <title>Re: %INCLUDE statement on Linux with uppercase pathname</title>
      <link>https://communities.sas.com/t5/SAS-Programming/INCLUDE-statement-on-Linux-with-uppercase-pathname/m-p/274357#M54725</link>
      <description>&lt;P&gt;Can you run some Unix commands from SAS to see what is going on?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
   input cmd $80. ;
   infile cmd pipe filevar=cmd end=eof;
   put cmd=;
   do while (not eof);
      input ;
      put _infile_;
   end;
cards;
pwd
ls -ld ~
ls -ld /server1/home
ls -ld /SERVER1/home
;;;;

&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 01 Jun 2016 13:52:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/INCLUDE-statement-on-Linux-with-uppercase-pathname/m-p/274357#M54725</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2016-06-01T13:52:05Z</dc:date>
    </item>
    <item>
      <title>Re: %INCLUDE statement on Linux with uppercase pathname</title>
      <link>https://communities.sas.com/t5/SAS-Programming/INCLUDE-statement-on-Linux-with-uppercase-pathname/m-p/274358#M54726</link>
      <description>&lt;P&gt;Thanks, using "~..." was a great suggestion. That worked and solved my very specific problem, I guess a more general answer would be useful for the future, too, but I will accept this as the solution for my current problem.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Jun 2016 13:53:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/INCLUDE-statement-on-Linux-with-uppercase-pathname/m-p/274358#M54726</guid>
      <dc:creator>BjoernHolzhauer</dc:creator>
      <dc:date>2016-06-01T13:53:47Z</dc:date>
    </item>
  </channel>
</rss>

