<?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: Ignore error and continue with program instead of terminating in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Ignore-error-and-continue-with-program-instead-of-terminating/m-p/742016#M232030</link>
    <description>&lt;P&gt;Check the ERRORABEND SAS option using PROC OPTIONS. Typically SAS programs don't abort unless this option is set or your code contains ABORT statements.&lt;/P&gt;</description>
    <pubDate>Mon, 17 May 2021 21:12:41 GMT</pubDate>
    <dc:creator>SASKiwi</dc:creator>
    <dc:date>2021-05-17T21:12:41Z</dc:date>
    <item>
      <title>Ignore error and continue with program instead of terminating</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Ignore-error-and-continue-with-program-instead-of-terminating/m-p/741979#M232023</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I have a number of simulations that I am running. I know that some of them will fail due to a floating point error. The problem is that SAS aborts the program when it detects this error. Is it possible to continue the program and just not collect results from the simulations that fail? I am looking for a try catch error solution. I googled and tried the options that other people recommended (see below) but none of them worked. Thank you.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;options obs=max nosyntaxcheck;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;PRE class="language-sas"&gt;&lt;CODE&gt;options dkricond=nowarn;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;PRE&gt;&amp;nbsp;options nosyntaxcheck;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 17 May 2021 20:11:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Ignore-error-and-continue-with-program-instead-of-terminating/m-p/741979#M232023</guid>
      <dc:creator>thewan</dc:creator>
      <dc:date>2021-05-17T20:11:13Z</dc:date>
    </item>
    <item>
      <title>Re: Ignore error and continue with program instead of terminating</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Ignore-error-and-continue-with-program-instead-of-terminating/m-p/742011#M232027</link>
      <description>&lt;P&gt;You may need to do this at the point of calculation where the error may occur rather than use a generic option.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/173317"&gt;@thewan&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I have a number of simulations that I am running. I know that some of them will fail due to a floating point error. The problem is that SAS aborts the program when it detects this error. Is it possible to continue the program and just not collect results from the simulations that fail? I am looking for a try catch error solution. I googled and tried the options that other people recommended (see below) but none of them worked. Thank you.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;options obs=max nosyntaxcheck;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;PRE class="language-sas"&gt;&lt;CODE&gt;options dkricond=nowarn;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;PRE&gt;&amp;nbsp;options nosyntaxcheck;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 17 May 2021 21:03:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Ignore-error-and-continue-with-program-instead-of-terminating/m-p/742011#M232027</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-05-17T21:03:57Z</dc:date>
    </item>
    <item>
      <title>Re: Ignore error and continue with program instead of terminating</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Ignore-error-and-continue-with-program-instead-of-terminating/m-p/742015#M232029</link>
      <description>&lt;P&gt;Since you already know that some will fail with a floating point error, what causes that floating point error?&lt;/P&gt;
&lt;P&gt;Perhaps you just need to check variables for some ranges of values and don't do the calculation and do a graceful exit.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Does this error occur in a data step or a proc? If a procedure, which one? There may be options to help recover if you can provide explicit examples.&lt;/P&gt;</description>
      <pubDate>Mon, 17 May 2021 21:08:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Ignore-error-and-continue-with-program-instead-of-terminating/m-p/742015#M232029</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2021-05-17T21:08:31Z</dc:date>
    </item>
    <item>
      <title>Re: Ignore error and continue with program instead of terminating</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Ignore-error-and-continue-with-program-instead-of-terminating/m-p/742016#M232030</link>
      <description>&lt;P&gt;Check the ERRORABEND SAS option using PROC OPTIONS. Typically SAS programs don't abort unless this option is set or your code contains ABORT statements.&lt;/P&gt;</description>
      <pubDate>Mon, 17 May 2021 21:12:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Ignore-error-and-continue-with-program-instead-of-terminating/m-p/742016#M232030</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2021-05-17T21:12:41Z</dc:date>
    </item>
  </channel>
</rss>

