<?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 Pipe filename executed locally and not on server in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Pipe-filename-executed-locally-and-not-on-server/m-p/544985#M150733</link>
    <description>&lt;P&gt;I have a Windows machine.&amp;nbsp; I use SAS EG which run from a AIX (UNIX) server.&amp;nbsp; I'm trying to run the following program.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
	infile 'ls -al' pipe;
	input stdout $80.;
	put stdout;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I receive this in the log:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Stderr output:
'ls' is not recognized as an internal or external command,
operable program or batch file.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;The "ls" does execute fine on the AIX server when I have an SSH session.&amp;nbsp; This is a Windows error that's being thrown.&amp;nbsp; When using the equivalent Windows command it works fine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
	infile 'dir' pipe;
	input stdout $80.;
	put stdout;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;How do I get the piped filenames to execute on the server and not locally?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 21 Mar 2019 18:44:36 GMT</pubDate>
    <dc:creator>tomcmacdonald</dc:creator>
    <dc:date>2019-03-21T18:44:36Z</dc:date>
    <item>
      <title>Pipe filename executed locally and not on server</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Pipe-filename-executed-locally-and-not-on-server/m-p/544985#M150733</link>
      <description>&lt;P&gt;I have a Windows machine.&amp;nbsp; I use SAS EG which run from a AIX (UNIX) server.&amp;nbsp; I'm trying to run the following program.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
	infile 'ls -al' pipe;
	input stdout $80.;
	put stdout;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I receive this in the log:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Stderr output:
'ls' is not recognized as an internal or external command,
operable program or batch file.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;The "ls" does execute fine on the AIX server when I have an SSH session.&amp;nbsp; This is a Windows error that's being thrown.&amp;nbsp; When using the equivalent Windows command it works fine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
	infile 'dir' pipe;
	input stdout $80.;
	put stdout;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;How do I get the piped filenames to execute on the server and not locally?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Mar 2019 18:44:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Pipe-filename-executed-locally-and-not-on-server/m-p/544985#M150733</guid>
      <dc:creator>tomcmacdonald</dc:creator>
      <dc:date>2019-03-21T18:44:36Z</dc:date>
    </item>
    <item>
      <title>Re: Pipe filename executed locally and not on server</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Pipe-filename-executed-locally-and-not-on-server/m-p/544998#M150739</link>
      <description>&lt;P&gt;that doesnt sound right .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Check the connection to ensure you are connecting to the AIX.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also what happens when you run this&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%put &amp;amp;sysscpl &amp;amp;sysscp;&lt;/CODE&gt;&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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Mar 2019 19:42:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Pipe-filename-executed-locally-and-not-on-server/m-p/544998#M150739</guid>
      <dc:creator>34reqrwe</dc:creator>
      <dc:date>2019-03-21T19:42:53Z</dc:date>
    </item>
    <item>
      <title>Re: Pipe filename executed locally and not on server</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Pipe-filename-executed-locally-and-not-on-server/m-p/545145#M150778</link>
      <description>&lt;P&gt;You're not connected to an AIX based workspace server.&lt;/P&gt;
&lt;P&gt;Do a&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%put &amp;amp;syshostinfolong. &amp;amp;syshostname.;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;to verify where your workspace server runs.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Mar 2019 07:24:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Pipe-filename-executed-locally-and-not-on-server/m-p/545145#M150778</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-03-22T07:24:04Z</dc:date>
    </item>
  </channel>
</rss>

