<?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: Error handling in batch mode in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Error-handling-in-batch-mode/m-p/66213#M18891</link>
    <description>Hi&lt;BR /&gt;
&lt;BR /&gt;
Wouldn't this just be to collect the highest exit code of the SAS programs you're submitting (as part of the dos script).&lt;BR /&gt;
&lt;BR /&gt;
As I understand it each of these programs is submitted in batch (within this .bat file). So these are a couple of child processes and there won't be a common SAS macro variable around as every single job runs in its own environment.&lt;BR /&gt;
&lt;BR /&gt;
Alternatively you could use the Windows Task Scheduler or LSF (if installed at your site) to handle job execution and error conditions.&lt;BR /&gt;
&lt;BR /&gt;
HTH&lt;BR /&gt;
Patrick</description>
    <pubDate>Tue, 17 May 2011 09:37:10 GMT</pubDate>
    <dc:creator>Patrick</dc:creator>
    <dc:date>2011-05-17T09:37:10Z</dc:date>
    <item>
      <title>Error handling in batch mode</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Error-handling-in-batch-mode/m-p/66212#M18890</link>
      <description>Hi,&lt;BR /&gt;
I've put some SAS programs in a .bat file that runs every day. At the end of the process SAS send me an email with the log file. With which automatic macro variable could I check if there was an error in the execution? In this manner I'd avoid receiving the whole log file.&lt;BR /&gt;
&lt;BR /&gt;
Thank you</description>
      <pubDate>Tue, 17 May 2011 08:41:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Error-handling-in-batch-mode/m-p/66212#M18890</guid>
      <dc:creator>HDSimo</dc:creator>
      <dc:date>2011-05-17T08:41:59Z</dc:date>
    </item>
    <item>
      <title>Re: Error handling in batch mode</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Error-handling-in-batch-mode/m-p/66213#M18891</link>
      <description>Hi&lt;BR /&gt;
&lt;BR /&gt;
Wouldn't this just be to collect the highest exit code of the SAS programs you're submitting (as part of the dos script).&lt;BR /&gt;
&lt;BR /&gt;
As I understand it each of these programs is submitted in batch (within this .bat file). So these are a couple of child processes and there won't be a common SAS macro variable around as every single job runs in its own environment.&lt;BR /&gt;
&lt;BR /&gt;
Alternatively you could use the Windows Task Scheduler or LSF (if installed at your site) to handle job execution and error conditions.&lt;BR /&gt;
&lt;BR /&gt;
HTH&lt;BR /&gt;
Patrick</description>
      <pubDate>Tue, 17 May 2011 09:37:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Error-handling-in-batch-mode/m-p/66213#M18891</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2011-05-17T09:37:10Z</dc:date>
    </item>
  </channel>
</rss>

