<?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: Abort in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Abort/m-p/61414#M13345</link>
    <description>First, I encourage you to enhance your data validation by converting the character date-string to a SAS numeric DATE variable where SAS will validate the data more accurately during the INPUT function processing, the test the _ERROR_ variable for non-zero before you do some exception action.&lt;BR /&gt;
&lt;BR /&gt;
For your particular post/query, you will want to read the specific OS companion guide about how ABORT works in your particular OS, also considering such OPTIONS as ERRORABEND/NOERRORABEND.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
    <pubDate>Tue, 23 Feb 2010 16:23:25 GMT</pubDate>
    <dc:creator>sbb</dc:creator>
    <dc:date>2010-02-23T16:23:25Z</dc:date>
    <item>
      <title>Abort</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Abort/m-p/61413#M13344</link>
      <description>data _null_;&lt;BR /&gt;
  set x;&lt;BR /&gt;
  if (input(substr(dat,1,2),8.) &amp;gt; 12&lt;BR /&gt;
      or&lt;BR /&gt;
 input(substr(dat,4,2),8.)&amp;gt; 31&lt;BR /&gt;
 )&lt;BR /&gt;
   then error = 'Y';&lt;BR /&gt;
   if error = 'Y' then abort;&lt;BR /&gt;
put 'ERROR:Error in the date field.Correct the date field in the source data';&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
I forced values where month is greater than 12 and day is greater than 31.The process did not stop (abort).It processed further.</description>
      <pubDate>Tue, 23 Feb 2010 16:12:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Abort/m-p/61413#M13344</guid>
      <dc:creator>SASPhile</dc:creator>
      <dc:date>2010-02-23T16:12:26Z</dc:date>
    </item>
    <item>
      <title>Re: Abort</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Abort/m-p/61414#M13345</link>
      <description>First, I encourage you to enhance your data validation by converting the character date-string to a SAS numeric DATE variable where SAS will validate the data more accurately during the INPUT function processing, the test the _ERROR_ variable for non-zero before you do some exception action.&lt;BR /&gt;
&lt;BR /&gt;
For your particular post/query, you will want to read the specific OS companion guide about how ABORT works in your particular OS, also considering such OPTIONS as ERRORABEND/NOERRORABEND.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
      <pubDate>Tue, 23 Feb 2010 16:23:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Abort/m-p/61414#M13345</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2010-02-23T16:23:25Z</dc:date>
    </item>
  </channel>
</rss>

