<?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: &amp;quot;abort abend 0&amp;quot; with unexpected result in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/quot-abort-abend-0-quot-with-unexpected-result/m-p/49788#M10380</link>
    <description>Please share more info, specifically what OS, what SAS version, and explain more about how your SAS application is being executed?  Also, consider there are differences between the macro language %ABORT and the DATA step ABORT statement.  As well, it would be useful to review the SAS Companion document for your particular OS environment.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
    <pubDate>Mon, 29 Jun 2009 13:41:29 GMT</pubDate>
    <dc:creator>sbb</dc:creator>
    <dc:date>2009-06-29T13:41:29Z</dc:date>
    <item>
      <title>"abort abend 0" with unexpected result</title>
      <link>https://communities.sas.com/t5/SAS-Programming/quot-abort-abend-0-quot-with-unexpected-result/m-p/49787#M10379</link>
      <description>Dear all,&lt;BR /&gt;
&lt;BR /&gt;
according to the SAS documentation I understand that the code&lt;BR /&gt;
&lt;BR /&gt;
%macro test;&lt;BR /&gt;
    %abort abend 0;&lt;BR /&gt;
%mend test;&lt;BR /&gt;
%test;&lt;BR /&gt;
&lt;BR /&gt;
should deliver a return code of 0 to the OS.&lt;BR /&gt;
&lt;BR /&gt;
However, what I get is a 5 - ERRORABEND is set to NOERRORABEND.&lt;BR /&gt;
&lt;BR /&gt;
What else could be the the reason that the above listed code does NOT return a 0?&lt;BR /&gt;
&lt;BR /&gt;
Thanks a lot and regards,&lt;BR /&gt;
Thomas</description>
      <pubDate>Mon, 29 Jun 2009 13:13:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/quot-abort-abend-0-quot-with-unexpected-result/m-p/49787#M10379</guid>
      <dc:creator>ThomasH</dc:creator>
      <dc:date>2009-06-29T13:13:44Z</dc:date>
    </item>
    <item>
      <title>Re: "abort abend 0" with unexpected result</title>
      <link>https://communities.sas.com/t5/SAS-Programming/quot-abort-abend-0-quot-with-unexpected-result/m-p/49788#M10380</link>
      <description>Please share more info, specifically what OS, what SAS version, and explain more about how your SAS application is being executed?  Also, consider there are differences between the macro language %ABORT and the DATA step ABORT statement.  As well, it would be useful to review the SAS Companion document for your particular OS environment.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
      <pubDate>Mon, 29 Jun 2009 13:41:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/quot-abort-abend-0-quot-with-unexpected-result/m-p/49788#M10380</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2009-06-29T13:41:29Z</dc:date>
    </item>
    <item>
      <title>Re: "abort abend 0" with unexpected result</title>
      <link>https://communities.sas.com/t5/SAS-Programming/quot-abort-abend-0-quot-with-unexpected-result/m-p/49789#M10381</link>
      <description>Hi Scott,&lt;BR /&gt;
&lt;BR /&gt;
SAS Version would be 9.13, OS is AIX and the application is - simplified - nothing more than the above described macro.&lt;BR /&gt;
&lt;BR /&gt;
I cannot find any more information in the SAS companion than a description on what %abort does and - if not as expected - I should check ERRORABEND, which I did.&lt;BR /&gt;
&lt;BR /&gt;
Thanks,&lt;BR /&gt;
Thomas</description>
      <pubDate>Mon, 29 Jun 2009 16:53:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/quot-abort-abend-0-quot-with-unexpected-result/m-p/49789#M10381</guid>
      <dc:creator>ThomasH</dc:creator>
      <dc:date>2009-06-29T16:53:56Z</dc:date>
    </item>
    <item>
      <title>Re: "abort abend 0" with unexpected result</title>
      <link>https://communities.sas.com/t5/SAS-Programming/quot-abort-abend-0-quot-with-unexpected-result/m-p/49790#M10382</link>
      <description>Suggest you open a SAS support track to report the condition.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;A href="http://support.sas.com/techsup/contact/submit_emits2.html" target="_blank"&gt;http://support.sas.com/techsup/contact/submit_emits2.html&lt;/A&gt;</description>
      <pubDate>Mon, 29 Jun 2009 17:54:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/quot-abort-abend-0-quot-with-unexpected-result/m-p/49790#M10382</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2009-06-29T17:54:32Z</dc:date>
    </item>
    <item>
      <title>Re: "abort abend 0" with unexpected result</title>
      <link>https://communities.sas.com/t5/SAS-Programming/quot-abort-abend-0-quot-with-unexpected-result/m-p/49791#M10383</link>
      <description>Hello Thomas.&lt;BR /&gt;
&lt;BR /&gt;
There is nothing wrong with what you reported.&lt;BR /&gt;
&lt;BR /&gt;
Actually, SAS Condition Code (ABEND's n) are not System Return Codes, and so, not returned to the system as they are.&lt;BR /&gt;
&lt;BR /&gt;
For the following scenarios expect the following RCs:&lt;BR /&gt;
&lt;BR /&gt;
0 	Normal completion&lt;BR /&gt;
1 	SAS issued warning(s)&lt;BR /&gt;
2 	SAS issued error(s)&lt;BR /&gt;
3 	ABORT;&lt;BR /&gt;
4 	ABORT RETURN n;&lt;BR /&gt;
5 	ABORT ABEND n;&lt;BR /&gt;
6 	Internal error&lt;BR /&gt;
&lt;BR /&gt;
So as you see, the reported behavior is perfectly right (ABORT ABEND n =&amp;gt; RC=5)&lt;BR /&gt;
&lt;BR /&gt;
Check the online documentation:&lt;BR /&gt;
&lt;A href="http://support.sas.com/documentation/cdl/en/hostunx/61879/HTML/default/a000397268.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/hostunx/61879/HTML/default/a000397268.htm&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
You may want to consider the ENDSAS; statement to end your SAS script at any moment, without returning an ERROR RC to the system.&lt;BR /&gt;
&lt;BR /&gt;
Check here:&lt;BR /&gt;
&lt;A href="http://support.sas.com/documentation/cdl/en/lrdict/61724/HTML/default/a000289392.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/lrdict/61724/HTML/default/a000289392.htm&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
Cheers from Portugal.&lt;BR /&gt;
&lt;BR /&gt;
Daniel Santos @ &lt;A href="http://www.cgd.pt" target="_blank"&gt;www.cgd.pt&lt;/A&gt;.</description>
      <pubDate>Tue, 30 Jun 2009 08:45:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/quot-abort-abend-0-quot-with-unexpected-result/m-p/49791#M10383</guid>
      <dc:creator>DanielSantos</dc:creator>
      <dc:date>2009-06-30T08:45:33Z</dc:date>
    </item>
  </channel>
</rss>

