<?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: PROC SQL SUM ISSUE in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/PROC-SQL-SUM-ISSUE/m-p/125656#M34546</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A __default_attr="8945" __jive_macro_name="user" class="jive_macro jive_macro_user" data-objecttype="3" href="https://communities.sas.com/"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Using a format won't resolve the precision issue but will only mask it. I believe what the OP needs to do is to find an explanation why there is such a precision issue and then resolve it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One reason can be that the data originates from a database. Numeric precision has been discussed here in these forums multiple times, it's documented and there are also whitepapers around.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 28 Oct 2013 21:21:01 GMT</pubDate>
    <dc:creator>Patrick</dc:creator>
    <dc:date>2013-10-28T21:21:01Z</dc:date>
    <item>
      <title>PROC SQL SUM ISSUE</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-SQL-SUM-ISSUE/m-p/125653#M34543</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Oct 2013 04:06:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-SQL-SUM-ISSUE/m-p/125653#M34543</guid>
      <dc:creator>JasonNC</dc:creator>
      <dc:date>2013-10-28T04:06:25Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SQL SUM ISSUE</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-SQL-SUM-ISSUE/m-p/125654#M34544</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This weird value is a very small number. I strongly assume this is caused by some precision issue. Does your data source come from a data base?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One way around this:&lt;/P&gt;&lt;P&gt; SUM(round(AMT,0.00000000001)) AS ID_AMT,PROVIDER&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Oct 2013 05:07:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-SQL-SUM-ISSUE/m-p/125654#M34544</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2013-10-28T05:07:24Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SQL SUM ISSUE</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-SQL-SUM-ISSUE/m-p/125655#M34545</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Give it a proper format like :&lt;/P&gt;&lt;P&gt;proc sql;&lt;/P&gt;&lt;P&gt;create table test as&lt;/P&gt;&lt;P&gt;select sum(AMT) format = 12.5&amp;nbsp; as sum ,ID from source_table&lt;/P&gt;&lt;P&gt;group by ID;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; sum&amp;nbsp; ID&lt;/P&gt;&lt;P&gt;ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ&lt;/P&gt;&lt;P&gt; 0.00000&amp;nbsp; XXX&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Oct 2013 11:25:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-SQL-SUM-ISSUE/m-p/125655#M34545</guid>
      <dc:creator>pradeepalankar</dc:creator>
      <dc:date>2013-10-28T11:25:28Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SQL SUM ISSUE</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-SQL-SUM-ISSUE/m-p/125656#M34546</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A __default_attr="8945" __jive_macro_name="user" class="jive_macro jive_macro_user" data-objecttype="3" href="https://communities.sas.com/"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Using a format won't resolve the precision issue but will only mask it. I believe what the OP needs to do is to find an explanation why there is such a precision issue and then resolve it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One reason can be that the data originates from a database. Numeric precision has been discussed here in these forums multiple times, it's documented and there are also whitepapers around.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Oct 2013 21:21:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-SQL-SUM-ISSUE/m-p/125656#M34546</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2013-10-28T21:21:01Z</dc:date>
    </item>
  </channel>
</rss>

