<?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: Job handling / workflow questions in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Job-handling-workflow-questions/m-p/66463#M14418</link>
    <description>&amp;gt; - does the usage of "%abort return" work for the&lt;BR /&gt;
&amp;gt; given scenario or should I consider anything else?&lt;BR /&gt;
Abort will terminate the current SAS session. %include will run your jobs within the original session, therefore will your whole workflow terminate at abort return.&lt;BR /&gt;
&lt;BR /&gt;
&amp;gt; - is "%global F" sufficient to define it as a&lt;BR /&gt;
&amp;gt; variable available throughout B1 - B3?&lt;BR /&gt;
Yes, since it will be declared as global in the "whole" session (see above).&lt;BR /&gt;
&lt;BR /&gt;
/Linus</description>
    <pubDate>Thu, 18 Dec 2008 11:35:22 GMT</pubDate>
    <dc:creator>LinusH</dc:creator>
    <dc:date>2008-12-18T11:35:22Z</dc:date>
    <item>
      <title>Job handling / workflow questions</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Job-handling-workflow-questions/m-p/66462#M14417</link>
      <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
I am trying to build some kind of workflow handling and would like to request your input on the following scenario:&lt;BR /&gt;
&lt;BR /&gt;
There is 1 job A, which includes (via %include) 3 jobs B1, B2, B3 sequentially in a loop.&lt;BR /&gt;
&lt;BR /&gt;
Job A is executed&lt;BR /&gt;
&lt;LOOP&gt;&lt;BR /&gt;
   Job A includes B1&lt;BR /&gt;
   B1 checks for a condition (if true: continue with job, set a flag F = 0 / if false:    &lt;BR /&gt;
   abort only B1, set a flag F = 1)&lt;BR /&gt;
   Job A includes B2&lt;BR /&gt;
   B2 checks F (if 0, continue / if 1, abort only B2)&lt;BR /&gt;
   B3 as B2&lt;BR /&gt;
&lt;/LOOP&gt;&lt;BR /&gt;
Job A ends&lt;BR /&gt;
&lt;BR /&gt;
Questions:&lt;BR /&gt;
- does the usage of "%abort return" work for the given scenario or should I consider anything else?&lt;BR /&gt;
- is "%global F" sufficient to define it as a variable available throughout B1 - B3?&lt;BR /&gt;
&lt;BR /&gt;
A is executed in batch mode.&lt;BR /&gt;
&lt;BR /&gt;
Any hint would be appreciated.&lt;BR /&gt;
&lt;BR /&gt;
Thanks and regards,&lt;BR /&gt;
Thomas

Message was edited by: ThomasH</description>
      <pubDate>Thu, 18 Dec 2008 10:28:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Job-handling-workflow-questions/m-p/66462#M14417</guid>
      <dc:creator>ThomasH</dc:creator>
      <dc:date>2008-12-18T10:28:48Z</dc:date>
    </item>
    <item>
      <title>Re: Job handling / workflow questions</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Job-handling-workflow-questions/m-p/66463#M14418</link>
      <description>&amp;gt; - does the usage of "%abort return" work for the&lt;BR /&gt;
&amp;gt; given scenario or should I consider anything else?&lt;BR /&gt;
Abort will terminate the current SAS session. %include will run your jobs within the original session, therefore will your whole workflow terminate at abort return.&lt;BR /&gt;
&lt;BR /&gt;
&amp;gt; - is "%global F" sufficient to define it as a&lt;BR /&gt;
&amp;gt; variable available throughout B1 - B3?&lt;BR /&gt;
Yes, since it will be declared as global in the "whole" session (see above).&lt;BR /&gt;
&lt;BR /&gt;
/Linus</description>
      <pubDate>Thu, 18 Dec 2008 11:35:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Job-handling-workflow-questions/m-p/66463#M14418</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2008-12-18T11:35:22Z</dc:date>
    </item>
    <item>
      <title>Re: Job handling / workflow questions</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Job-handling-workflow-questions/m-p/66464#M14419</link>
      <description>Thanks,&lt;BR /&gt;
&lt;BR /&gt;
%abort without any argument does the job.&lt;BR /&gt;
&lt;BR /&gt;
Thomas</description>
      <pubDate>Thu, 18 Dec 2008 13:31:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Job-handling-workflow-questions/m-p/66464#M14419</guid>
      <dc:creator>ThomasH</dc:creator>
      <dc:date>2008-12-18T13:31:34Z</dc:date>
    </item>
  </channel>
</rss>

