<?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 Systask submits only one job in random in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Systask-submits-only-one-job-in-random/m-p/349712#M273580</link>
    <description>&lt;P&gt;Hi ,&lt;/P&gt;
&lt;P&gt;We use the below code to submit jobs ,and we pass the macro variables across through a loop for each task.&lt;BR /&gt;Kindly let me know the reason for code being submitted only once (one systask) in random manner.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;systask command "START ""Batch"" /wait /min &lt;BR /&gt;""%sysget(sasroot)\sas.exe"" -batch -nosplash &lt;BR /&gt;-sysin ""&amp;amp;run_file."" -log ""&amp;amp;log_file."" -print ""&amp;amp;lst_file."" " &lt;BR /&gt;taskname=tsk_2;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note: Loop passes the variable correctly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;BR /&gt;Kayal.&lt;/P&gt;</description>
    <pubDate>Thu, 13 Apr 2017 11:07:16 GMT</pubDate>
    <dc:creator>Kayalvizhi</dc:creator>
    <dc:date>2017-04-13T11:07:16Z</dc:date>
    <item>
      <title>Systask submits only one job in random</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Systask-submits-only-one-job-in-random/m-p/349712#M273580</link>
      <description>&lt;P&gt;Hi ,&lt;/P&gt;
&lt;P&gt;We use the below code to submit jobs ,and we pass the macro variables across through a loop for each task.&lt;BR /&gt;Kindly let me know the reason for code being submitted only once (one systask) in random manner.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;systask command "START ""Batch"" /wait /min &lt;BR /&gt;""%sysget(sasroot)\sas.exe"" -batch -nosplash &lt;BR /&gt;-sysin ""&amp;amp;run_file."" -log ""&amp;amp;log_file."" -print ""&amp;amp;lst_file."" " &lt;BR /&gt;taskname=tsk_2;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note: Loop passes the variable correctly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;BR /&gt;Kayal.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Apr 2017 11:07:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Systask-submits-only-one-job-in-random/m-p/349712#M273580</guid>
      <dc:creator>Kayalvizhi</dc:creator>
      <dc:date>2017-04-13T11:07:16Z</dc:date>
    </item>
    <item>
      <title>Re: Systask submits only one job in random</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Systask-submits-only-one-job-in-random/m-p/349763#M273581</link>
      <description>&lt;P&gt;Since you have hard code the TASKNAME and not used the WAIT option on the SYSTASK command then you could end up with two tasks running under the same name. &amp;nbsp;I suspect that will cause confusion for your program.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Apr 2017 13:47:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Systask-submits-only-one-job-in-random/m-p/349763#M273581</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2017-04-13T13:47:35Z</dc:date>
    </item>
  </channel>
</rss>

