<?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: Submitting SAS Code Via SYSTASK in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Submitting-SAS-Code-Via-SYSTASK/m-p/437850#M28262</link>
    <description>&lt;P&gt;Good suggestion.&amp;nbsp; We have only one AIX machine with SAS on it available to us, so I don't think that's the issue.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I also set and verify the working directory by means of an X command prior to issuing my SYSTASK as follows:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;X "cd &amp;amp;SAS_Path";&lt;/P&gt;
&lt;P&gt;FILENAME pwd PIPE "pwd";&lt;/P&gt;
&lt;P&gt;*--------------------------------------------------------------------------------------------------*;&lt;/P&gt;
&lt;P&gt;DATA _NULL_;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; LENGTH Working_Directory $32767;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; INFILE pwd&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; TRUNCOVER&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; INPUT @1 Working_Directory $32767.;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; PUTLOG "NOTE: The working directory is=" Working_Directory;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; STOP;&lt;BR /&gt;RUN;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So, I'm pretty sure I'm pointing to the right spot on the right machine.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Jim&lt;/P&gt;</description>
    <pubDate>Fri, 16 Feb 2018 00:24:31 GMT</pubDate>
    <dc:creator>jimbarbour</dc:creator>
    <dc:date>2018-02-16T00:24:31Z</dc:date>
    <item>
      <title>Submitting SAS Code Via SYSTASK</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Submitting-SAS-Code-Via-SYSTASK/m-p/437846#M28260</link>
      <description>&lt;P&gt;I'm running SAS&amp;nbsp;9.4 TS1M4 on an AIX (7100-03-03-1415) machine which I access via SAS EG&amp;nbsp;7.15 HF2 (7.100.5.6112) (64-bit).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm trying to submit some SAS code from within a SAS program using SYSTASK.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SYSTASK COMMAND 'sas -sysin /ca_analytics/data_intelligence/Export.sas -SYSPARM 1+5666666+a' NOWAIT STATUS=T1_RC TASKNAME=T1_TASK SHELL;&lt;BR /&gt;WAITFOR T1_TASK;&lt;/P&gt;
&lt;P&gt;%PUT NOTE: RC = &amp;amp;T1_RC;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Uniformly, I get a return code of 126, and the code doesn't execute.&amp;nbsp; If I cut and paste my code onto a UNIX command line, it works just fine.&amp;nbsp; I'm surely missing something elementary, but what?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any pointers appreciated.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Jim&lt;/P&gt;</description>
      <pubDate>Fri, 16 Feb 2018 00:14:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Submitting-SAS-Code-Via-SYSTASK/m-p/437846#M28260</guid>
      <dc:creator>jimbarbour</dc:creator>
      <dc:date>2018-02-16T00:14:11Z</dc:date>
    </item>
    <item>
      <title>Re: Submitting SAS Code Via SYSTASK</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Submitting-SAS-Code-Via-SYSTASK/m-p/437847#M28261</link>
      <description>&lt;P&gt;Check what machine your SAS code is running on.&amp;nbsp; In our shop commands that work on the machine that users use to launch SAS do not necessarily work on the machine that is actually running the SAS code.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Feb 2018 00:16:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Submitting-SAS-Code-Via-SYSTASK/m-p/437847#M28261</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2018-02-16T00:16:36Z</dc:date>
    </item>
    <item>
      <title>Re: Submitting SAS Code Via SYSTASK</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Submitting-SAS-Code-Via-SYSTASK/m-p/437850#M28262</link>
      <description>&lt;P&gt;Good suggestion.&amp;nbsp; We have only one AIX machine with SAS on it available to us, so I don't think that's the issue.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I also set and verify the working directory by means of an X command prior to issuing my SYSTASK as follows:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;X "cd &amp;amp;SAS_Path";&lt;/P&gt;
&lt;P&gt;FILENAME pwd PIPE "pwd";&lt;/P&gt;
&lt;P&gt;*--------------------------------------------------------------------------------------------------*;&lt;/P&gt;
&lt;P&gt;DATA _NULL_;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; LENGTH Working_Directory $32767;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; INFILE pwd&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; TRUNCOVER&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; INPUT @1 Working_Directory $32767.;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; PUTLOG "NOTE: The working directory is=" Working_Directory;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; STOP;&lt;BR /&gt;RUN;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So, I'm pretty sure I'm pointing to the right spot on the right machine.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Jim&lt;/P&gt;</description>
      <pubDate>Fri, 16 Feb 2018 00:24:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Submitting-SAS-Code-Via-SYSTASK/m-p/437850#M28262</guid>
      <dc:creator>jimbarbour</dc:creator>
      <dc:date>2018-02-16T00:24:31Z</dc:date>
    </item>
  </channel>
</rss>

