<?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: how catch floating point error in an ods? in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/how-catch-floating-point-error-in-an-ods/m-p/887642#M43952</link>
    <description>&lt;P&gt;it doens't work for the scenario metioned, i don't know why.&lt;/P&gt;
&lt;P&gt;re version: i'm not looking to solve the problem, i am&amp;nbsp; only looking to catch it&lt;/P&gt;
&lt;P&gt;re they are marked as solved: that's why i had to create a new thread, they are closed (unfortunately)&lt;/P&gt;</description>
    <pubDate>Thu, 03 Aug 2023 10:04:47 GMT</pubDate>
    <dc:creator>pmbrown</dc:creator>
    <dc:date>2023-08-03T10:04:47Z</dc:date>
    <item>
      <title>how catch floating point error in an ods?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/how-catch-floating-point-error-in-an-ods/m-p/887623#M43950</link>
      <description>&lt;P&gt;unfortunately Rick Wicklin's neat solution here:&amp;nbsp;&lt;A href="https://communities.sas.com/t5/Statistical-Procedures/NLMIXED-difference-between-convergence-status-and-non-positive/td-p/710934" target="_blank"&gt;https://communities.sas.com/t5/Statistical-Procedures/NLMIXED-difference-between-convergence-status-and-non-positive/td-p/710934&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;does not work for this scenario:&amp;nbsp;&lt;A href="https://communities.sas.com/t5/Statistical-Procedures/proc-phreg-ties-handling-floating-point-zero-divide/td-p/496970" target="_blank"&gt;https://communities.sas.com/t5/Statistical-Procedures/proc-phreg-ties-handling-floating-point-zero-divide/td-p/496970&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;i'm wondering how to catch the error in a dataset when running a large macro containing several phreg's. Can Rick's code be modified in some way? That would be ideal because i am already making use of it&lt;/P&gt;</description>
      <pubDate>Thu, 03 Aug 2023 06:43:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/how-catch-floating-point-error-in-an-ods/m-p/887623#M43950</guid>
      <dc:creator>pmbrown</dc:creator>
      <dc:date>2023-08-03T06:43:13Z</dc:date>
    </item>
    <item>
      <title>Re: how catch floating point error in an ods?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/how-catch-floating-point-error-in-an-ods/m-p/887637#M43951</link>
      <description>Both threads you mention are marked as solved. Can you elaborate on why Rick's solution doesn't work for the scenario from the second post. Are you using the latest SAS 9.4 release (SAS 9.4M8 shipped in January 2023) or an older release?</description>
      <pubDate>Thu, 03 Aug 2023 09:41:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/how-catch-floating-point-error-in-an-ods/m-p/887637#M43951</guid>
      <dc:creator>JosvanderVelden</dc:creator>
      <dc:date>2023-08-03T09:41:35Z</dc:date>
    </item>
    <item>
      <title>Re: how catch floating point error in an ods?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/how-catch-floating-point-error-in-an-ods/m-p/887642#M43952</link>
      <description>&lt;P&gt;it doens't work for the scenario metioned, i don't know why.&lt;/P&gt;
&lt;P&gt;re version: i'm not looking to solve the problem, i am&amp;nbsp; only looking to catch it&lt;/P&gt;
&lt;P&gt;re they are marked as solved: that's why i had to create a new thread, they are closed (unfortunately)&lt;/P&gt;</description>
      <pubDate>Thu, 03 Aug 2023 10:04:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/how-catch-floating-point-error-in-an-ods/m-p/887642#M43952</guid>
      <dc:creator>pmbrown</dc:creator>
      <dc:date>2023-08-03T10:04:47Z</dc:date>
    </item>
    <item>
      <title>Re: how catch floating point error in an ods?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/how-catch-floating-point-error-in-an-ods/m-p/887645#M43953</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What procedure are you using? PROC PHREG?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I do not think there's any mentioning of "&lt;SPAN&gt;floating point zero divide error&lt;/SPAN&gt;" in the output. So, ODS (Output Delivery System) solutions are impossible.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You will have to parse the log.&lt;/P&gt;
&lt;P&gt;If you have BY-groups , analyzing the LOG by means of a self-written LOG-Analyzer ...&amp;nbsp;&lt;SPAN&gt;should tell you which BY group to look at.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Koen&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Aug 2023 10:16:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/how-catch-floating-point-error-in-an-ods/m-p/887645#M43953</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2023-08-03T10:16:06Z</dc:date>
    </item>
    <item>
      <title>Re: how catch floating point error in an ods?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/how-catch-floating-point-error-in-an-ods/m-p/887658#M43954</link>
      <description>&lt;P&gt;re ods solutions are impossible: that's right, it won't show up in the covergencestatus ods&lt;/P&gt;
&lt;P&gt;re parse the log: but i need to catch it in a dataset, that's what's great about Rick Wicklin's solution, and i'm wondering how to adjust his code to catch this error, because it does not catch it&lt;/P&gt;</description>
      <pubDate>Thu, 03 Aug 2023 11:09:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/how-catch-floating-point-error-in-an-ods/m-p/887658#M43954</guid>
      <dc:creator>pmbrown</dc:creator>
      <dc:date>2023-08-03T11:09:14Z</dc:date>
    </item>
    <item>
      <title>Re: how catch floating point error in an ods?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/how-catch-floating-point-error-in-an-ods/m-p/887659#M43955</link>
      <description>Can you describe the scenario where it does not catch it, with a small data and code example?</description>
      <pubDate>Thu, 03 Aug 2023 11:13:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/how-catch-floating-point-error-in-an-ods/m-p/887659#M43955</guid>
      <dc:creator>JosvanderVelden</dc:creator>
      <dc:date>2023-08-03T11:13:20Z</dc:date>
    </item>
    <item>
      <title>Re: how catch floating point error in an ods?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/how-catch-floating-point-error-in-an-ods/m-p/887667#M43957</link>
      <description>&lt;P&gt;sure&lt;/P&gt;
&lt;PRE&gt;proc phreg data=...;
  class groupvar (ref=first) arm  / param=ref;
  model aval*cnsr(1,2)= groupvar arm  / risklimits=pl ties=exact; 
  ods output ParameterEstimates=.... ;
  estimate 'G1' groupvar 1 /cl exp; 
run;

&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;NOTE: Convergence criterion (GCONV=1E-8) satisfied.
ERROR: Floating Point Zero Divide.
WARNING: Output 'ParameterEstimates' was not created.  Make sure that the output object name, label, or path is spelled correctly.  
         Also, verify that the appropriate procedure options are used to produce the requested output object.  For example, verify 
         that the NOPRINT option is not used.
ERROR: Termination due to Floating Point Exception
NOTE: The SAS System stopped processing this step because of errors.
NOTE: The PROCEDURE PHREG printed pages 157-158.
NOTE: PROCEDURE PHREG used (Total process time):
      real time           0.69 seconds
      cpu time            0.69 seconds
&lt;/PRE&gt;
&lt;P&gt;i can't give data, it may be the case that the event rate is low, but i'm not at all interested in that, i am only interested in how i can catch this error in a dataset&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Aug 2023 12:14:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/how-catch-floating-point-error-in-an-ods/m-p/887667#M43957</guid>
      <dc:creator>pmbrown</dc:creator>
      <dc:date>2023-08-03T12:14:31Z</dc:date>
    </item>
    <item>
      <title>Re: how catch floating point error in an ods?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/how-catch-floating-point-error-in-an-ods/m-p/887672#M43958</link>
      <description>&lt;P&gt;When try to use Rick's solution, what happens? It's not clear to me what you mean by it does not work.&amp;nbsp; His solution is storing the value of the automatic macro variable &amp;amp;SYSWARNINGTEXT.&amp;nbsp; If you want to store the error message, you could change the macro call to:&lt;/P&gt;
&lt;LI-CODE lang="sas"&gt;%MonitorErrors(1, &amp;amp;SysErr, "&amp;amp;SysErrorText")&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;But as a more basic test, can you post the full log from running:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc phreg data=...;
  class groupvar (ref=first) arm  / param=ref;
  model aval*cnsr(1,2)= groupvar arm  / risklimits=pl ties=exact; 
  ods output ParameterEstimates=.... ;
  estimate 'G1' groupvar 1 /cl exp; 
run;

%put &amp;amp;=SysErr &amp;amp;=SysWarningText &amp;amp;=SysErrorText ;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;As long as PROC PHREG is appropriately setting SYSERR to a non-zero value, I think Rick's method should work.&amp;nbsp; But if PHREG is not setting SYSERR, then you might have to resort to log scanning, or checking for the existence of the output ParameterEstimates data set. If you're running the code as a batch job, it's possible the error is causing the SAS session to abort, but there are options to change that.&amp;nbsp; And that is not shown in the log messages you posted.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Aug 2023 12:34:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/how-catch-floating-point-error-in-an-ods/m-p/887672#M43958</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2023-08-03T12:34:41Z</dc:date>
    </item>
    <item>
      <title>Re: how catch floating point error in an ods?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/how-catch-floating-point-error-in-an-ods/m-p/887675#M43959</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would first try what &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/19879"&gt;@Quentin&lt;/a&gt; has suggested 10 or 15 minutes ago.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But in case you need to revert to LOG-parsing&lt;/P&gt;
&lt;P&gt;... you should know that a proper LOG-parser (LOG-analyzer) , that you have to write yourself, will also organize everything in a structured dataset.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am sure you can find many SAS Log parsers (SAS Log analyzers) on internet.&lt;BR /&gt;You can start here :&lt;BR /&gt;&lt;A href="https://www.lexjansen.com/search/searchresults.php?q=log%20parser" target="_blank"&gt;https://www.lexjansen.com/search/searchresults.php?q=log%20parser&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SAS Tip: Learn lexjansen.com&lt;BR /&gt;&lt;A href="https://communities.sas.com/t5/SAS-Tips-from-the-Community/SAS-Tip-Learn-lexjansen-com/m-p/436336#M26" target="_blank"&gt;https://communities.sas.com/t5/SAS-Tips-from-the-Community/SAS-Tip-Learn-lexjansen-com/m-p/436336#M26&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Koen&lt;/P&gt;
&lt;DIV id="ConnectiveDocSignExtentionInstalled" data-extension-version="1.0.4"&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Thu, 03 Aug 2023 12:44:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/how-catch-floating-point-error-in-an-ods/m-p/887675#M43959</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2023-08-03T12:44:49Z</dc:date>
    </item>
    <item>
      <title>Re: how catch floating point error in an ods?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/how-catch-floating-point-error-in-an-ods/m-p/887681#M43960</link>
      <description>&lt;P&gt;It seems to say in the log that the ODS output was not created.&amp;nbsp; So if you use ODS OUTPUT to tell it make a dataset of that ODS output then you can later test if the dataset is created or not.&amp;nbsp; Or perhaps if using BY group processing that it has all of the BY groups it should have.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Aug 2023 12:53:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/how-catch-floating-point-error-in-an-ods/m-p/887681#M43960</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2023-08-03T12:53:52Z</dc:date>
    </item>
    <item>
      <title>Re: how catch floating point error in an ods?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/how-catch-floating-point-error-in-an-ods/m-p/887713#M43961</link>
      <description>&lt;P&gt;apparently syserr is 0 because it's resulting in msg=OK for everything, ie i run the model for many scenarios and it always reports syserr=0 even when there is an error. Like this:&lt;/P&gt;
&lt;PRE&gt;SYSERR=0 SYSWARNINGTEXT=Output 'ParameterEstimates' was not created.  Make sure that the output object name, label, or path is 
spelled correctly.  Also, verify that the appropriate procedure options are used to produce the requested output object.  For 
example, verify that the NOPRINT option is not used. SYSERRORTEXT=Termination due to Floating Point Exception
&lt;/PRE&gt;
&lt;P&gt;the solution then seems to be to collect syserrortext, as you suggested, regardless of the value of syserr, and then use the index function (or whatever) to scan the text. Edit: or Tom's suggestion re checking for the parametestimates dataset&lt;/P&gt;</description>
      <pubDate>Thu, 03 Aug 2023 14:39:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/how-catch-floating-point-error-in-an-ods/m-p/887713#M43961</guid>
      <dc:creator>pmbrown</dc:creator>
      <dc:date>2023-08-03T14:39:54Z</dc:date>
    </item>
    <item>
      <title>Re: how catch floating point error in an ods?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/how-catch-floating-point-error-in-an-ods/m-p/887717#M43962</link>
      <description>&lt;P&gt;thanks, yes i scan the log. The reason i want the info in a dataset is so i can write code to suppress unreliable model estimates from a summary table, or at least flag them.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Aug 2023 14:42:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/how-catch-floating-point-error-in-an-ods/m-p/887717#M43962</guid>
      <dc:creator>pmbrown</dc:creator>
      <dc:date>2023-08-03T14:42:08Z</dc:date>
    </item>
    <item>
      <title>Re: how catch floating point error in an ods?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/how-catch-floating-point-error-in-an-ods/m-p/887719#M43963</link>
      <description>&lt;P&gt;That's unfortunate that SYSERR is not being set when there is an error.&amp;nbsp; I recommend you submit that to tech support as a bug.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The tricky thing about SYSERRORTEXT and SYSWARNINGTEXT is that they are not reset to blank at a step boundary.&amp;nbsp; So you can't simply test the value of these variables.&amp;nbsp; But probably you could use the existence of the parameterestimates output dataset as the switch instead of syserr.&amp;nbsp; So something like:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%macro MonitorErrors(ModelID, ParameterEstimatesData, Text);
   data ErrorMsg;
      length msg $200;
      ModelID = &amp;amp;ModelID;
      %if %sysfunc(exist(&amp;amp;ParameterEstimatesData)) %then %do;
         msg = "OK";
      %end;
      %else %do;
         msg = &amp;amp;Text;
      %end;
   run;
   proc append base=Errors data=ErrorMsg force; run;
%mend;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;With that approach, assuming you're running multiple PHREG steps, you would need to PROC DELETE the parameter estimates data after each step.&amp;nbsp; You could do that with the above macro, or outside of it.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Aug 2023 14:54:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/how-catch-floating-point-error-in-an-ods/m-p/887719#M43963</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2023-08-03T14:54:38Z</dc:date>
    </item>
    <item>
      <title>Re: how catch floating point error in an ods?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/how-catch-floating-point-error-in-an-ods/m-p/887776#M43965</link>
      <description>&lt;P&gt;excellent, i will try this asap.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;re they are not reset to blank, i just noticed this, ie there's is one model causing the problem, but the errors i capture suggest every model after this problem model is a problem, as if the value is retained&lt;/P&gt;
&lt;P&gt;i think syserr has been useful for me when catching the non-poitive definite warning message, so maybe i need a combination of syserr and detecting if parameterestimatesdata exists&lt;/P&gt;</description>
      <pubDate>Thu, 03 Aug 2023 18:17:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/how-catch-floating-point-error-in-an-ods/m-p/887776#M43965</guid>
      <dc:creator>pmbrown</dc:creator>
      <dc:date>2023-08-03T18:17:26Z</dc:date>
    </item>
    <item>
      <title>Re: how catch floating point error in an ods?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/how-catch-floating-point-error-in-an-ods/m-p/887785#M43967</link>
      <description>&lt;BLOCKQUOTE&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/308996"&gt;@pmbrown&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;excellent, i will try this asap.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;i think syserr has been useful for me when catching the non-poitive definite warning message, so maybe i need a combination of syserr and detecting if parameterestimatesdata exists&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;Yes, that's a good idea to check both.&amp;nbsp; Something like:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%if &amp;amp;syserr=0 and %sysfunc(exist(&amp;amp;ParameterEstimatesData)) %then %do; 
...&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 03 Aug 2023 18:54:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/how-catch-floating-point-error-in-an-ods/m-p/887785#M43967</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2023-08-03T18:54:24Z</dc:date>
    </item>
    <item>
      <title>Re: how catch floating point error in an ods?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/how-catch-floating-point-error-in-an-ods/m-p/887814#M43970</link>
      <description>&lt;P&gt;You can sort of reset SYSERRORTEXT.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;101  data _null_;
102     set notfound;
ERROR: File WORK.NOTFOUND.DATA does not exist.
103     run;

NOTE: The SAS System stopped processing this step because of errors.
NOTE: DATA statement used (Total process time):
      real time           0.00 seconds
      cpu time            0.00 seconds


104  %put NOTE: &amp;amp;=syserrortext;
NOTE: SYSERRORTEXT=File WORK.NOTFOUND.DATA does not exist.
105  %put ERROR: %str( );
ERROR:
106  %put NOTE: &amp;amp;=syserrortext;
NOTE: SYSERRORTEXT=
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 03 Aug 2023 22:38:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/how-catch-floating-point-error-in-an-ods/m-p/887814#M43970</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2023-08-03T22:38:17Z</dc:date>
    </item>
    <item>
      <title>Re: how catch floating point error in an ods?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/how-catch-floating-point-error-in-an-ods/m-p/887864#M43973</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/15410"&gt;@data_null__&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;You can sort of reset SYSERRORTEXT.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;101  data _null_;
102     set notfound;
ERROR: File WORK.NOTFOUND.DATA does not exist.
103     run;

NOTE: The SAS System stopped processing this step because of errors.
NOTE: DATA statement used (Total process time):
      real time           0.00 seconds
      cpu time            0.00 seconds


104  %put NOTE: &amp;amp;=syserrortext;
NOTE: SYSERRORTEXT=File WORK.NOTFOUND.DATA does not exist.
105  %put ERROR: %str( );
ERROR:
106  %put NOTE: &amp;amp;=syserrortext;
NOTE: SYSERRORTEXT=
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Wow, thanks DN, that's just the kind of insightful tidbit that makes SAS communities so valuable. You never know what you will learn by participating in a discussion thread.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Aug 2023 13:31:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/how-catch-floating-point-error-in-an-ods/m-p/887864#M43973</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2023-08-04T13:31:45Z</dc:date>
    </item>
    <item>
      <title>Re: how catch floating point error in an ods?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/how-catch-floating-point-error-in-an-ods/m-p/888799#M44016</link>
      <description>&lt;P&gt;i accept this as the solution, although it turns out that when the floating point error occurs it terminates the program. I was hoping it would continue to run analyses with the problem analysis flagged, but i need to write code to detect when a problem analysis might arise and prevent it from running. For what it's worth i will continue using the macro to catch warnings&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;%macro monitorerrs(modelID,errornum,ParameterEstimatesData);

data errmsg&amp;amp;modelID;
  length msg $200;
*put model ID and syserr in dataset;
  modelID = &amp;amp;modelID;
  syserr = &amp;amp;errornum;
*put message in dataset;
  %if &amp;amp;errornum gt 0 %then %do;
      msg = "&amp;amp;SysWarningText"; /*eg, pos def, ridging etc*/
  %end;
  %else %if %sysfunc(exist(&amp;amp;ParameterEstimatesData)) %then %do; 
     msg = "OK";
  %end;
  %else %do;
      msg = "&amp;amp;SysErrorText";
  %end;
run;

%mend monitorerrs;
&lt;/PRE&gt;</description>
      <pubDate>Thu, 10 Aug 2023 14:18:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/how-catch-floating-point-error-in-an-ods/m-p/888799#M44016</guid>
      <dc:creator>pmbrown</dc:creator>
      <dc:date>2023-08-10T14:18:00Z</dc:date>
    </item>
    <item>
      <title>Re: how catch floating point error in an ods?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/how-catch-floating-point-error-in-an-ods/m-p/888823#M44022</link>
      <description>&lt;P&gt;You could try setting system option NOERRORABEND if you want the SAS session to keep running despite errors.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Aug 2023 17:22:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/how-catch-floating-point-error-in-an-ods/m-p/888823#M44022</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2023-08-10T17:22:01Z</dc:date>
    </item>
  </channel>
</rss>

