<?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: Parallelization with SYSTASK - SAS Connect not installed in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Parallelization-with-SYSTASK-SAS-Connect-not-installed/m-p/236128#M43239</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Is it not necessary in SYSTASK to mention the complete command as below&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;systask command&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;"START ""Batch"" /wait /min&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ""%sysget(sasroot)sas.exe"" -batch -nosplash&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -sysin ""D:Program1.sas""&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -log ""D:Program1.log""&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; " wait;&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;Rgds,&lt;/P&gt;&lt;P&gt;AbhiD&lt;/P&gt;</description>
    <pubDate>Tue, 24 Nov 2015 04:05:51 GMT</pubDate>
    <dc:creator>AbhiD</dc:creator>
    <dc:date>2015-11-24T04:05:51Z</dc:date>
    <item>
      <title>Parallelization with SYSTASK - SAS Connect not installed</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Parallelization-with-SYSTASK-SAS-Connect-not-installed/m-p/77832#M16875</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;I am trying to trigger multiple SAS Sessions in parallel using SYSTASK. I used rsubmit before but there is no SAS Connect in our current set up. Can any one please help me with this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below i am trying to run two sas scripts (adh.sas &amp;amp; adh1.sas) in parallel using a different sas script (adh2.sas)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Content in script adh2.sas&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;systask command "sas /sas/exl/exl_final_reports_dev/adh.sas" taskname = rmnohup; &lt;/P&gt;&lt;P&gt;systask command "sas /sas/exl/exl_final_reports_dev/adh1.sas" taskname = rmgmi; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Error:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOTE: SAS initialization used:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; real time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.14 seconds&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cpu time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.11 seconds&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;ERROR: Execution of the Command 'sas /sas/one/one_time/adh.sas' failed.&lt;/P&gt;&lt;P&gt;ERROR: The specified executable module either cannot be located or it is not a valid executable.&lt;/P&gt;&lt;P&gt;ERROR: Could not create a new process.&lt;/P&gt;&lt;P&gt;1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; systask command "sas /sas/one/one_time/adh.sas" taskname = rmnohup&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 May 2013 23:58:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Parallelization-with-SYSTASK-SAS-Connect-not-installed/m-p/77832#M16875</guid>
      <dc:creator>aruku</dc:creator>
      <dc:date>2013-05-16T23:58:56Z</dc:date>
    </item>
    <item>
      <title>Re: Parallelization with SYSTASK - SAS Connect not installed</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Parallelization-with-SYSTASK-SAS-Connect-not-installed/m-p/236128#M43239</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Is it not necessary in SYSTASK to mention the complete command as below&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;systask command&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;"START ""Batch"" /wait /min&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ""%sysget(sasroot)sas.exe"" -batch -nosplash&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -sysin ""D:Program1.sas""&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -log ""D:Program1.log""&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; " wait;&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;Rgds,&lt;/P&gt;&lt;P&gt;AbhiD&lt;/P&gt;</description>
      <pubDate>Tue, 24 Nov 2015 04:05:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Parallelization-with-SYSTASK-SAS-Connect-not-installed/m-p/236128#M43239</guid>
      <dc:creator>AbhiD</dc:creator>
      <dc:date>2015-11-24T04:05:51Z</dc:date>
    </item>
    <item>
      <title>Re: Parallelization with SYSTASK - SAS Connect not installed</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Parallelization-with-SYSTASK-SAS-Connect-not-installed/m-p/236143#M43242</link>
      <description>&lt;P&gt;Very often you want a specific environment invocated. If so then don't use "sas.exe" but "sas.bat" (Windows) or "sas.sh" (Unix/Linux) under the server context you want.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The following code works for me when executed via SAS EG with a SAS Server under Windows. The child processes use the "sas.bat" under the server context (compute tier) to which the EG session is connected to.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;systask command
  "
  %sysget(APPSERVER_ROOT)\sas.bat
  -batch -nosplash
  -sysin ""c:\test\HelloWorld.sas""
  -log ""c:\test\#P_#Y#m#d_#H#M#s_#p.log""
  -logparm rollover=session
  " 
  taskname=pgm1
  nowait;

  systask command
  "
  %sysget(APPSERVER_ROOT)\sas.bat
  -batch -nosplash
  -sysin ""c:\test\HelloWorld.sas""
  -log ""c:\test\#P_#Y#m#d_#H#M#s_#p.log""
  -logparm rollover=session
  " 
  taskname=pgm2
  nowait;

waitfor _all_ pgm1 pgm2;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Log directives:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://support.sas.com/documentation/cdl/en/lesysoptsref/68023/HTML/default/viewer.htm#p0fmptfnyvi1n6n148u0qu4h44a5.htm" target="_blank"&gt;https://support.sas.com/documentation/cdl/en/lesysoptsref/68023/HTML/default/viewer.htm#p0fmptfnyvi1n6n148u0qu4h44a5.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SAS/Connect ("rsubmit") gives you remote library services. This is something you don't have available when creating&amp;nbsp;child sessions via SYSTASK. You will need to write data to permanent tables in the child sessions and then access these tables later on in the parent session.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can "mimik" the SAS/Connect functionality of pushing macro variables from the parent to the child via system option "-initstmt" (dynamically creating "%let" statements which then get executed in the child session).&lt;/P&gt;
&lt;P&gt;Here the link for Windows but the same works also under UNIX/Linux:&amp;nbsp;&lt;A href="http://support.sas.com/documentation/cdl/en/hostwin/67962/HTML/default/viewer.htm#p05ueoh4gef14pn10r24gvu2hhj5.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/hostwin/67962/HTML/default/viewer.htm#p05ueoh4gef14pn10r24gvu2hhj5.htm&amp;nbsp;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Nov 2015 09:25:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Parallelization-with-SYSTASK-SAS-Connect-not-installed/m-p/236143#M43242</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2015-11-24T09:25:52Z</dc:date>
    </item>
  </channel>
</rss>

