<?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: parallel programming in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/parallel-programming/m-p/453411#M114573</link>
    <description>&lt;P&gt;Well you need to set a trigger somewhere.&lt;/P&gt;
&lt;P&gt;You could&amp;nbsp;check for the existence of a sas data set or an environment variable, but usually an empty text file is created in a trigger directory.&lt;/P&gt;
&lt;P&gt;This allows cross-system checks, and is easy to monitor.&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;if fileexist()&lt;/FONT&gt;&amp;nbsp; is what your last process tests.&lt;/P&gt;</description>
    <pubDate>Wed, 11 Apr 2018 23:36:01 GMT</pubDate>
    <dc:creator>ChrisNZ</dc:creator>
    <dc:date>2018-04-11T23:36:01Z</dc:date>
    <item>
      <title>parallel programming</title>
      <link>https://communities.sas.com/t5/SAS-Programming/parallel-programming/m-p/452845#M114324</link>
      <description>&lt;P&gt;&lt;SPAN class="short_text"&gt;&lt;SPAN&gt;Hello&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="short_text"&gt;&lt;SPAN class=""&gt;I have the following question&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="short_text"&gt;&lt;SPAN class=""&gt;Usually, when I want to do several threads at the same time and then after doing them, start a thread that uses the results of previous threads, I use the following solution&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;systask command "START ""Batch"" /wait /min
    ""C:\Program Files\SAS\SASFoundation\9.2(32-bit)\sas.exe"" -batch -nosplash
    -sysin ""&amp;amp;CodePatch.__TrRt_&amp;amp;NrFL._&amp;amp;Period._1_1_.sas"" -log ""&amp;amp;CodePatch"""
    taskname=job2_for_data;

systask command "START ""Batch"" /wait /min
    ""C:\Program Files\SAS\SASFoundation\9.2(32-bit)\sas.exe"" -batch -nosplash
    -sysin ""&amp;amp;CodePatch.__TrRt_&amp;amp;NrFL._&amp;amp;Period._1_2_.sas"" -log ""&amp;amp;CodePatch"""
    taskname=job3_for_data;

waitfor _all_   job2_for_data job3_for_data;



systask command "START /realtime ""Batch""
    ""C:\Program Files\SAS\SASFoundation\9.2(32-bit)\sas.exe"" -batch -nosplash 
    -sysin ""&amp;amp;CodePatch.__TrRt_&amp;amp;NrFL._&amp;amp;Period._1_0_DL.sas"" -log ""&amp;amp;CodePatch""";&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;SPAN class="short_text"&gt;&lt;SPAN class=""&gt;&lt;SPAN class="trans-target-highlight"&gt;Currently, threads run another application at different intervals and after completing them I would like to automatically analyze the results and make a report.&lt;/SPAN&gt; &lt;SPAN&gt;Has the community developed any solutions for this occasion?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Apr 2018 14:38:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/parallel-programming/m-p/452845#M114324</guid>
      <dc:creator>makset7</dc:creator>
      <dc:date>2018-04-10T14:38:36Z</dc:date>
    </item>
    <item>
      <title>Re: parallel programming</title>
      <link>https://communities.sas.com/t5/SAS-Programming/parallel-programming/m-p/453031#M114395</link>
      <description>&lt;P&gt;Maybe did you not get a response because other people, like me,&amp;nbsp;do not quite understand what you are after?&lt;/P&gt;
&lt;P&gt;In what way is what you are doing now not sufficient?&lt;/P&gt;</description>
      <pubDate>Wed, 11 Apr 2018 02:37:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/parallel-programming/m-p/453031#M114395</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2018-04-11T02:37:37Z</dc:date>
    </item>
    <item>
      <title>Re: parallel programming</title>
      <link>https://communities.sas.com/t5/SAS-Programming/parallel-programming/m-p/453134#M114464</link>
      <description>&lt;P&gt;&lt;SPAN class=""&gt;The first situation well known even to beginners in parallel programming.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;All tasks (task_1 to&amp;nbsp;task_7) start at the same time and after the last one (task_8), eg reporting starts.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class="short_text"&gt;Here I know the solution to the problem.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class="short_text"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="parallel programming first situation.jpg" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/19720i4426A0BAC271159A/image-size/large?v=v2&amp;amp;px=999" role="button" title="parallel programming first situation.jpg" alt="parallel programming first situation.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;Second situation:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;Tasks (task_1 to&amp;nbsp;task_7) start at different times, independently and after the last one (task_8) the reporting begins&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class="short_text"&gt;Here I do not know the solution to the problem&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="parallel programming Second situation.jpg" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/19721iAFAF77F10C32DBD2/image-size/large?v=v2&amp;amp;px=999" role="button" title="parallel programming Second situation.jpg" alt="parallel programming Second situation.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Apr 2018 10:59:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/parallel-programming/m-p/453134#M114464</guid>
      <dc:creator>makset7</dc:creator>
      <dc:date>2018-04-11T10:59:16Z</dc:date>
    </item>
    <item>
      <title>Re: parallel programming</title>
      <link>https://communities.sas.com/t5/SAS-Programming/parallel-programming/m-p/453138#M114465</link>
      <description>If the tasks are independent the common and reliable  (if archaic) method is to use trigger files. When all trigger files are there the final process can start.</description>
      <pubDate>Wed, 11 Apr 2018 11:03:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/parallel-programming/m-p/453138#M114465</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2018-04-11T11:03:57Z</dc:date>
    </item>
    <item>
      <title>Re: parallel programming</title>
      <link>https://communities.sas.com/t5/SAS-Programming/parallel-programming/m-p/453154#M114473</link>
      <description>maybe an example?!&lt;BR /&gt;&lt;BR /&gt;So far I have used the %sysfunc(exist(&amp;amp;file)) function but sometimes I had a problem with&lt;BR /&gt;ERROR: A lock is not available for... &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;I thought maybe there is a more elegant solution&lt;BR /&gt;</description>
      <pubDate>Wed, 11 Apr 2018 12:12:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/parallel-programming/m-p/453154#M114473</guid>
      <dc:creator>makset7</dc:creator>
      <dc:date>2018-04-11T12:12:02Z</dc:date>
    </item>
    <item>
      <title>Re: parallel programming</title>
      <link>https://communities.sas.com/t5/SAS-Programming/parallel-programming/m-p/453411#M114573</link>
      <description>&lt;P&gt;Well you need to set a trigger somewhere.&lt;/P&gt;
&lt;P&gt;You could&amp;nbsp;check for the existence of a sas data set or an environment variable, but usually an empty text file is created in a trigger directory.&lt;/P&gt;
&lt;P&gt;This allows cross-system checks, and is easy to monitor.&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;if fileexist()&lt;/FONT&gt;&amp;nbsp; is what your last process tests.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Apr 2018 23:36:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/parallel-programming/m-p/453411#M114573</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2018-04-11T23:36:01Z</dc:date>
    </item>
  </channel>
</rss>

