<?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: DIVS by 0 Error in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/DIVS-by-0-Error/m-p/471703#M30586</link>
    <description>Thank you so much !</description>
    <pubDate>Wed, 20 Jun 2018 14:12:33 GMT</pubDate>
    <dc:creator>dhunited12</dc:creator>
    <dc:date>2018-06-20T14:12:33Z</dc:date>
    <item>
      <title>DIVS by 0 Error</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/DIVS-by-0-Error/m-p/471671#M30580</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to run a query&lt;/P&gt;&lt;P&gt;(SUM(AMNT_OF_CHEESE)) / (SUM(AMNT_OF_BREAD)) AS CHEESEBREAD&lt;/P&gt;&lt;P&gt;but am getting&lt;/P&gt;&lt;P&gt;"ERROR: Error fetching from cursor. ORACLE error is ORA-01476: divisor is equal&lt;/P&gt;&lt;P&gt;to zero" in the log. Yes, some days there are no bread.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm new to SAS EG and tried resolving the issue by cases but have been failing for the past hour. Any help would be greatly appreciated!&lt;BR /&gt;&lt;BR /&gt;Thank you in advance &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jun 2018 13:00:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/DIVS-by-0-Error/m-p/471671#M30580</guid>
      <dc:creator>dhunited12</dc:creator>
      <dc:date>2018-06-20T13:00:20Z</dc:date>
    </item>
    <item>
      <title>Re: DIVS by 0 Error</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/DIVS-by-0-Error/m-p/471675#M30581</link>
      <description>&lt;P&gt;Well, first off that is an Oracle error, not a SAS one.&amp;nbsp; But I would do:&lt;/P&gt;
&lt;PRE&gt;case when sum(amnt_of_cheese) &amp;gt;0 and sum(amnt_of_bread) &amp;gt; 0 then  sum(amnt_of_cheese) / sum(amnt_of_bread) 
     else 0 end as cheesebread
&lt;/PRE&gt;</description>
      <pubDate>Wed, 20 Jun 2018 13:09:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/DIVS-by-0-Error/m-p/471675#M30581</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-06-20T13:09:10Z</dc:date>
    </item>
    <item>
      <title>Re: DIVS by 0 Error</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/DIVS-by-0-Error/m-p/471703#M30586</link>
      <description>Thank you so much !</description>
      <pubDate>Wed, 20 Jun 2018 14:12:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/DIVS-by-0-Error/m-p/471703#M30586</guid>
      <dc:creator>dhunited12</dc:creator>
      <dc:date>2018-06-20T14:12:33Z</dc:date>
    </item>
  </channel>
</rss>

