<?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: Asynchronous  Processing without SAS waiting for child to terminate in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Asynchronous-Processing-without-SAS-waiting-for-child-to/m-p/766288#M242848</link>
    <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/16961"&gt;@ChrisNZ&lt;/a&gt;&amp;nbsp;Haven't tried that yet but certainly worth doing.&lt;/P&gt;
&lt;P&gt;What do you mean by "&lt;SPAN&gt;a system command with ampersand"? Anything different from an X command or similar?&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 07 Sep 2021 01:31:33 GMT</pubDate>
    <dc:creator>Patrick</dc:creator>
    <dc:date>2021-09-07T01:31:33Z</dc:date>
    <item>
      <title>Asynchronous  Processing without SAS waiting for child to terminate</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Asynchronous-Processing-without-SAS-waiting-for-child-to/m-p/766191#M242796</link>
      <description>&lt;P&gt;&lt;STRONG&gt;What I've got&lt;/STRONG&gt;&lt;BR /&gt;- Process 1 (not SAS) calls process 2 (SAS) synchronous&lt;BR /&gt;- Once process 2 complete, process 1 does a few more things&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;What I need&lt;/STRONG&gt;&lt;BR /&gt;- Call from process 2 some 3rd process (a SAS program) that only executes once process 1 is complete (not pretty but a simple sleep() will do to ensure that process 1 finished).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Challenge&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;SAS process 2 needs to finish (feed back to process 1 that finished) even though SAS child process 3 is still executing.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've tried to call this process 3 using rsubmit asynchronous but it appears the #2 SAS process is still waiting for #3 to finish before it "tells" #1 that it's done.&lt;BR /&gt;What I need is a way where #2 doesn't wait before it tells #1 that it's done.&lt;/P&gt;
&lt;P&gt;Right now "best" I could do is for #2 not to wait - but this then also terminated the #3 child process with error as it wasn't done yet.&lt;/P&gt;
&lt;P&gt;The only idea I've had so far that might work is for #2 to create a token file used by a scheduler as trigger to start #3. ....but I'd prefer to call #3 via rsubmit or some X command or similar.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any suggestions based on actual implementation experience highly welcome.&lt;/P&gt;
&lt;P&gt;And: The way Process #1 and #2 interact is not under my control and can't be changed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Environment: A current SAS9.4 version under RHEL, no lsf.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Sep 2021 10:08:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Asynchronous-Processing-without-SAS-waiting-for-child-to/m-p/766191#M242796</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2021-09-06T10:08:09Z</dc:date>
    </item>
    <item>
      <title>Re: Asynchronous  Processing without SAS waiting for child to terminate</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Asynchronous-Processing-without-SAS-waiting-for-child-to/m-p/766275#M242841</link>
      <description>&lt;P&gt;Have you tried launching a system command with ampersand and either &lt;FONT face="courier new,courier"&gt;nohup&lt;/FONT&gt; or maybe &lt;FONT face="courier new,courier"&gt;disown&lt;/FONT&gt; ?&amp;nbsp; See &lt;A href="https://unix.stackexchange.com/questions/4004/how-can-i-run-a-command-which-will-survive-terminal-close" target="_self"&gt;here&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Sep 2021 23:03:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Asynchronous-Processing-without-SAS-waiting-for-child-to/m-p/766275#M242841</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2021-09-06T23:03:39Z</dc:date>
    </item>
    <item>
      <title>Re: Asynchronous  Processing without SAS waiting for child to terminate</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Asynchronous-Processing-without-SAS-waiting-for-child-to/m-p/766288#M242848</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/16961"&gt;@ChrisNZ&lt;/a&gt;&amp;nbsp;Haven't tried that yet but certainly worth doing.&lt;/P&gt;
&lt;P&gt;What do you mean by "&lt;SPAN&gt;a system command with ampersand"? Anything different from an X command or similar?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Sep 2021 01:31:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Asynchronous-Processing-without-SAS-waiting-for-child-to/m-p/766288#M242848</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2021-09-07T01:31:33Z</dc:date>
    </item>
    <item>
      <title>Re: Asynchronous  Processing without SAS waiting for child to terminate</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Asynchronous-Processing-without-SAS-waiting-for-child-to/m-p/766293#M242851</link>
      <description>&lt;P&gt;Sorry if my wording was a bit too terse. I meant &lt;A href="https://www.javatpoint.com/linux-ampersand" target="_self"&gt;this&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Sep 2021 01:39:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Asynchronous-Processing-without-SAS-waiting-for-child-to/m-p/766293#M242851</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2021-09-07T01:39:55Z</dc:date>
    </item>
  </channel>
</rss>

