<?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 SYSERR. not capturing the error in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SYSERR-not-capturing-the-error/m-p/698157#M213486</link>
    <description>&lt;P&gt;Hello Folks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i have an error handling in a sas program that should email when there is an error in the previous data steps but its not addressing those errors.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;at the moment it sends an email when the error code is more than 0 but its always success.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%IF &amp;amp;SYSERR. &amp;gt; 0 %THEN %DO;&lt;/P&gt;&lt;P&gt;%IF &amp;amp;SYSERR. = 0 %THEN %DO;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;is there a way to handle error when they any steps fails in a sas program?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 11 Nov 2020 14:46:29 GMT</pubDate>
    <dc:creator>Jibyjacob7</dc:creator>
    <dc:date>2020-11-11T14:46:29Z</dc:date>
    <item>
      <title>SYSERR. not capturing the error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SYSERR-not-capturing-the-error/m-p/698157#M213486</link>
      <description>&lt;P&gt;Hello Folks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i have an error handling in a sas program that should email when there is an error in the previous data steps but its not addressing those errors.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;at the moment it sends an email when the error code is more than 0 but its always success.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%IF &amp;amp;SYSERR. &amp;gt; 0 %THEN %DO;&lt;/P&gt;&lt;P&gt;%IF &amp;amp;SYSERR. = 0 %THEN %DO;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;is there a way to handle error when they any steps fails in a sas program?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Nov 2020 14:46:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SYSERR-not-capturing-the-error/m-p/698157#M213486</guid>
      <dc:creator>Jibyjacob7</dc:creator>
      <dc:date>2020-11-11T14:46:29Z</dc:date>
    </item>
    <item>
      <title>Re: SYSERR. not capturing the error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SYSERR-not-capturing-the-error/m-p/698161#M213489</link>
      <description>&lt;P&gt;Maxim 1.&lt;/P&gt;
&lt;P&gt;From the documentation of&amp;nbsp;&lt;A href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.4&amp;amp;docsetId=mcrolref&amp;amp;docsetTarget=n1wrevo4roqsnxn1fbd9yezxvv9k.htm&amp;amp;locale=en" target="_blank" rel="noopener"&gt;SYSERR&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;SYSERR automatic macro variable is reset at each step boundary. For the return code of a complete job, see &lt;/SPAN&gt;&lt;A tabindex="0" title="" href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.4&amp;amp;docsetId=mcrolref&amp;amp;docsetTarget=p11nt7mv7k9hl4n1x9zwkralgq1b.htm&amp;amp;locale=de" data-docset-id="mcrolref" data-docset-version="9.4" data-original-href="p11nt7mv7k9hl4n1x9zwkralgq1b.htm"&gt;SYSCC Automatic Macro Variable&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;So if you have a successful step right before, SYSERR will return a zero. Use SYSCC to get the overall return code of your program.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Nov 2020 15:04:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SYSERR-not-capturing-the-error/m-p/698161#M213489</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-11-11T15:04:04Z</dc:date>
    </item>
    <item>
      <title>Re: SYSERR. not capturing the error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SYSERR-not-capturing-the-error/m-p/698186#M213498</link>
      <description>Thanks a lot</description>
      <pubDate>Wed, 11 Nov 2020 16:44:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SYSERR-not-capturing-the-error/m-p/698186#M213498</guid>
      <dc:creator>Jibyjacob7</dc:creator>
      <dc:date>2020-11-11T16:44:48Z</dc:date>
    </item>
  </channel>
</rss>

