<?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 Floating Point Overflow in HPFMM - how to stop it and how to stop my program terminating in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Floating-Point-Overflow-in-HPFMM-how-to-stop-it-and-how-to-stop/m-p/526626#M143463</link>
    <description>&lt;P&gt;I am running a marco that iterates through all variables in my dataset, and for each variable, runs a hpfmm procedure. The marco works perfectly until it reaches a variable for which there is a floating point error, in which case, the macro terminates&lt;/P&gt;&lt;P&gt;This is a snippet of my code and its associated error&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc hpfmm data = nf_allgpr_s4_div_ge3 seed=12345 ;&lt;BR /&gt;model gprPWY_5971_s4 = / kmin=1 kmax=3 dist=STUDENT ;&lt;BR /&gt;ods output ConvergenceStatus=myConvergenceStatus ;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ERROR: Floating Point Overflow.&lt;/P&gt;&lt;P&gt;ERROR: Termination due to Floating Point Exception&lt;BR /&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried the above program with proc fmm, and get the same issue&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My questions are&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;How can I get SAS to stop producing the floating point error?&lt;/LI&gt;&lt;LI&gt;If that is not possible, how can I get my macro to continue to iterate to the next variable in my dataset, rather than terminating the program, when a floating point error arises?&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Thank you so much for your input&lt;/P&gt;</description>
    <pubDate>Sat, 12 Jan 2019 18:50:58 GMT</pubDate>
    <dc:creator>kivey</dc:creator>
    <dc:date>2019-01-12T18:50:58Z</dc:date>
    <item>
      <title>Floating Point Overflow in HPFMM - how to stop it and how to stop my program terminating</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Floating-Point-Overflow-in-HPFMM-how-to-stop-it-and-how-to-stop/m-p/526626#M143463</link>
      <description>&lt;P&gt;I am running a marco that iterates through all variables in my dataset, and for each variable, runs a hpfmm procedure. The marco works perfectly until it reaches a variable for which there is a floating point error, in which case, the macro terminates&lt;/P&gt;&lt;P&gt;This is a snippet of my code and its associated error&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc hpfmm data = nf_allgpr_s4_div_ge3 seed=12345 ;&lt;BR /&gt;model gprPWY_5971_s4 = / kmin=1 kmax=3 dist=STUDENT ;&lt;BR /&gt;ods output ConvergenceStatus=myConvergenceStatus ;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ERROR: Floating Point Overflow.&lt;/P&gt;&lt;P&gt;ERROR: Termination due to Floating Point Exception&lt;BR /&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried the above program with proc fmm, and get the same issue&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My questions are&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;How can I get SAS to stop producing the floating point error?&lt;/LI&gt;&lt;LI&gt;If that is not possible, how can I get my macro to continue to iterate to the next variable in my dataset, rather than terminating the program, when a floating point error arises?&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Thank you so much for your input&lt;/P&gt;</description>
      <pubDate>Sat, 12 Jan 2019 18:50:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Floating-Point-Overflow-in-HPFMM-how-to-stop-it-and-how-to-stop/m-p/526626#M143463</guid>
      <dc:creator>kivey</dc:creator>
      <dc:date>2019-01-12T18:50:58Z</dc:date>
    </item>
    <item>
      <title>Re: Floating Point Overflow in HPFMM - how to stop it and how to stop my program terminating</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Floating-Point-Overflow-in-HPFMM-how-to-stop-it-and-how-to-stop/m-p/526772#M143525</link>
      <description>&lt;P&gt;You should report the floating-point overflow to SAS technical support. Include the data for the&amp;nbsp;&lt;SPAN&gt;gprPWY_5971_s4 variable and the information about your SAS version.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;1. You can try rescaling the&amp;nbsp;gprPWY_5971_s4 variable. Use PROC MEANS to see if that is a likely problem. Sometimes data that has extreme ranges (eg, a range of values&amp;nbsp;such as [0, 1e9]) can lead to overflows. If the variable has a wide range, try using PROC STDIZE to rescale.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;2. To skip the variable use the DROP statement in your macro:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;proc hpfmm data = nf_allgpr_s4_div_ge3(DROP=gprPWY_5971_s4 ) ...&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 13 Jan 2019 20:41:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Floating-Point-Overflow-in-HPFMM-how-to-stop-it-and-how-to-stop/m-p/526772#M143525</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2019-01-13T20:41:30Z</dc:date>
    </item>
  </channel>
</rss>

