<?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 recovering from error conditions in batch mode in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/recovering-from-error-conditions-in-batch-mode/m-p/121386#M24865</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm looking for a way to execute a data step at the end of a batch program only when an error popped up which triggered an obs=0 and syntax checking condition.&amp;nbsp; I thought there was an option for that but didn't find one.&amp;nbsp; This happens to be in 9.1.3 on a Solaris box, but am looking for a more generic guide.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--Ben&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 27 Jun 2013 22:02:37 GMT</pubDate>
    <dc:creator>BenConner</dc:creator>
    <dc:date>2013-06-27T22:02:37Z</dc:date>
    <item>
      <title>recovering from error conditions in batch mode</title>
      <link>https://communities.sas.com/t5/SAS-Programming/recovering-from-error-conditions-in-batch-mode/m-p/121386#M24865</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm looking for a way to execute a data step at the end of a batch program only when an error popped up which triggered an obs=0 and syntax checking condition.&amp;nbsp; I thought there was an option for that but didn't find one.&amp;nbsp; This happens to be in 9.1.3 on a Solaris box, but am looking for a more generic guide.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--Ben&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Jun 2013 22:02:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/recovering-from-error-conditions-in-batch-mode/m-p/121386#M24865</guid>
      <dc:creator>BenConner</dc:creator>
      <dc:date>2013-06-27T22:02:37Z</dc:date>
    </item>
    <item>
      <title>Re: recovering from error conditions in batch mode</title>
      <link>https://communities.sas.com/t5/SAS-Programming/recovering-from-error-conditions-in-batch-mode/m-p/121387#M24866</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A SAS batch job should return a return code greater than or equal to 2 if it goes into syntax check mode. You could trap this value and then kick off a second SAS program containing the code you want.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How are you running your SAS programs? A Unix script file would seem to be one option. This reference might be helpful:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/techsup/technote/ts353.html"&gt;http://support.sas.com/techsup/technote/ts353.html&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Jun 2013 02:24:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/recovering-from-error-conditions-in-batch-mode/m-p/121387#M24866</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2013-06-28T02:24:13Z</dc:date>
    </item>
    <item>
      <title>Re: recovering from error conditions in batch mode</title>
      <link>https://communities.sas.com/t5/SAS-Programming/recovering-from-error-conditions-in-batch-mode/m-p/121388#M24867</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A __default_attr="121019" __jive_macro_name="message" class="jive_macro jive_macro_message" href="https://communities.sas.com/"&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Jun 2013 03:43:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/recovering-from-error-conditions-in-batch-mode/m-p/121388#M24867</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2013-06-28T03:43:58Z</dc:date>
    </item>
  </channel>
</rss>

