<?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: Reading Numeric Values from Oracle into SAS in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Reading-Numeric-Values-from-Oracle-into-SAS/m-p/1621#M729</link>
    <description>Our PROC SUMMARY expert in R&amp;amp;D says:&lt;BR /&gt;
&lt;BR /&gt;
[pre]&lt;BR /&gt;
Unfortunately, there's no simple answer as to why they're getting slightly different sums when reading directly from Oracle vs reading a copy of the data. &lt;BR /&gt;
[/pre]&lt;BR /&gt;
&lt;BR /&gt;
I'm sorry that we couldn't be of more help.&lt;BR /&gt;
&lt;BR /&gt;
-- David Kelley, SAS</description>
    <pubDate>Fri, 27 Oct 2006 19:39:15 GMT</pubDate>
    <dc:creator>David_SAS</dc:creator>
    <dc:date>2006-10-27T19:39:15Z</dc:date>
    <item>
      <title>Reading Numeric Values from Oracle into SAS</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Reading-Numeric-Values-from-Oracle-into-SAS/m-p/1620#M728</link>
      <description>HI,&lt;BR /&gt;
&lt;BR /&gt;
As I try to reconcile the data in Oracle (through SAS/Oracle) and SAS, I found there is slightly a very very small difference in the sum of numeric variables in both side.&lt;BR /&gt;
&lt;BR /&gt;
Sample Codes:&lt;BR /&gt;
PROC SUMMARY DATA = ORALib.inData NWAY MISSING;&lt;BR /&gt;
	VAR amount ;&lt;BR /&gt;
	OUTPUT OUT = inData_ORA (DROP =_TYPE_)&lt;BR /&gt;
    SUM=;&lt;BR /&gt;
RUN;&lt;BR /&gt;
&lt;BR /&gt;
PROC SUMMARY DATA = SASLib.inData NWAY MISSING;&lt;BR /&gt;
	VAR amount ;&lt;BR /&gt;
	OUTPUT OUT = inData_SAS (DROP =_TYPE_)&lt;BR /&gt;
    SUM=;&lt;BR /&gt;
RUN;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Variable   Oracle Amt Sum  SAS Amt Sum    Difference&lt;BR /&gt;
AMOUNT     68726887.00     68726887.00    -.000000030&lt;BR /&gt;
&lt;BR /&gt;
I suspect that SAS truncate some of the values of the numeric variables when I PROC SUMMARY straight into the Oracle Library. I understand this is very small difference but is there any way I avoid this different to happen? I tried LENGTH amount 8 but it does not really seem to solve the problem. What do you think if using INFORMAT rb8. in for PROC SUMMARY statement?&lt;BR /&gt;
&lt;BR /&gt;
Thanks.&lt;BR /&gt;
Jason@Aus</description>
      <pubDate>Tue, 24 Oct 2006 13:20:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Reading-Numeric-Values-from-Oracle-into-SAS/m-p/1620#M728</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2006-10-24T13:20:21Z</dc:date>
    </item>
    <item>
      <title>Re: Reading Numeric Values from Oracle into SAS</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Reading-Numeric-Values-from-Oracle-into-SAS/m-p/1621#M729</link>
      <description>Our PROC SUMMARY expert in R&amp;amp;D says:&lt;BR /&gt;
&lt;BR /&gt;
[pre]&lt;BR /&gt;
Unfortunately, there's no simple answer as to why they're getting slightly different sums when reading directly from Oracle vs reading a copy of the data. &lt;BR /&gt;
[/pre]&lt;BR /&gt;
&lt;BR /&gt;
I'm sorry that we couldn't be of more help.&lt;BR /&gt;
&lt;BR /&gt;
-- David Kelley, SAS</description>
      <pubDate>Fri, 27 Oct 2006 19:39:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Reading-Numeric-Values-from-Oracle-into-SAS/m-p/1621#M729</guid>
      <dc:creator>David_SAS</dc:creator>
      <dc:date>2006-10-27T19:39:15Z</dc:date>
    </item>
    <item>
      <title>Re: Reading Numeric Values from Oracle into SAS</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Reading-Numeric-Values-from-Oracle-into-SAS/m-p/1622#M730</link>
      <description>&amp;gt; HI,&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; As I try to reconcile  &lt;BR /&gt;
&amp;gt; SAS/Oracle) and SAS, I found  very&lt;BR /&gt;
&amp;gt; very small difference in the sum of numeric  &lt;BR /&gt;
.....&lt;BR /&gt;
&lt;BR /&gt;
&amp;gt; Variable   Oracle Amt Sum  SAS Amt Sum    Difference&lt;BR /&gt;
&amp;gt; AMOUNT     68726887.00     68726887.00&lt;BR /&gt;
&amp;gt;    -.000000030&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; I suspect that SAS truncate&lt;BR /&gt;
&amp;gt; numeric variables when I PROC SUMMARY &lt;BR /&gt;
&amp;gt;  this is very small&lt;BR /&gt;
&amp;gt;  is there any way I avoid this&lt;BR /&gt;
.....  &lt;BR /&gt;
&amp;gt; Thanks.&lt;BR /&gt;
&amp;gt; Jason@Aus&lt;BR /&gt;
&lt;BR /&gt;
When is it important to eliminate differences in values that occur beyond 15 significant digits ? &lt;BR /&gt;
&lt;BR /&gt;
SAS Real Numbers cannot support greater precision.&lt;BR /&gt;
&lt;BR /&gt;
Be glad you are in SAS. Put a 16 digit credit card number into excel, and watch the 16th become zero !&lt;BR /&gt;
&lt;BR /&gt;
Peter</description>
      <pubDate>Mon, 30 Oct 2006 09:06:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Reading-Numeric-Values-from-Oracle-into-SAS/m-p/1622#M730</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2006-10-30T09:06:27Z</dc:date>
    </item>
  </channel>
</rss>

