<?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: Loading Data into DB2 Table in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Loading-Data-into-DB2-Table/m-p/75153#M16178</link>
    <description>Hi Deepu&lt;BR /&gt;
&lt;BR /&gt;
That's a nasty one!&lt;BR /&gt;
&lt;BR /&gt;
I remember that there is a very good SAS whitepaper or SUGI/SEUGI paper explaining why this can happen - but I just can't find it anymore!!!&lt;BR /&gt;
&lt;BR /&gt;
What I remember from this paper is that the cause of the problem is how numbers are digitally represented/stored in SAS vs. Oracle (or DB2) - and also under different platforms like Windows/Unix/zOS. It was very clear and obvious.&lt;BR /&gt;
&lt;BR /&gt;
I believe the solution was using the round() function when loading to Oracle - but I'm just no more able to recall the details.&lt;BR /&gt;
&lt;BR /&gt;
Let me know in case you find this paper. It's one I should store in "my box".&lt;BR /&gt;
&lt;BR /&gt;
Cheers, Patrick&lt;BR /&gt;
&lt;BR /&gt;
Just found this SAS note which points in the same direction. "endian byte order" seems to be a key word.

Message was edited by: Patrick</description>
    <pubDate>Thu, 26 Feb 2009 13:15:22 GMT</pubDate>
    <dc:creator>Patrick</dc:creator>
    <dc:date>2009-02-26T13:15:22Z</dc:date>
    <item>
      <title>Loading Data into DB2 Table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Loading-Data-into-DB2-Table/m-p/75152#M16177</link>
      <description>Dear SAS,&lt;BR /&gt;
&lt;BR /&gt;
I am getting a problem related to the value rounding off while loading the data to DB2 table from SAS Dataset using PROC APPEND.&lt;BR /&gt;
&lt;BR /&gt;
Details:&lt;BR /&gt;
&lt;BR /&gt;
Issue:&lt;BR /&gt;
&lt;BR /&gt;
A 16 digit numeric field which contains value for e.g. as 8853159845301049 in SAS data set gets rounded off to 8853159845301050 while populating in DB2 using proc append in the table loader.&lt;BR /&gt;
NOTE: &lt;BR /&gt;
The metadata for a field in SAS Dataset is - &lt;BR /&gt;
Type - Numeric&lt;BR /&gt;
Length - 8&lt;BR /&gt;
Format - 16.&lt;BR /&gt;
Informat - 16.&lt;BR /&gt;
&lt;BR /&gt;
The metadata for a field in DB2 is - &lt;BR /&gt;
Type - DECIMAL&lt;BR /&gt;
Precision - 16&lt;BR /&gt;
Scale - 0&lt;BR /&gt;
&lt;BR /&gt;
Please suggest the way by which this issue can be prevented.&lt;BR /&gt;
&lt;BR /&gt;
Regards&lt;BR /&gt;
Deepu</description>
      <pubDate>Mon, 23 Feb 2009 12:02:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Loading-Data-into-DB2-Table/m-p/75152#M16177</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-02-23T12:02:18Z</dc:date>
    </item>
    <item>
      <title>Re: Loading Data into DB2 Table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Loading-Data-into-DB2-Table/m-p/75153#M16178</link>
      <description>Hi Deepu&lt;BR /&gt;
&lt;BR /&gt;
That's a nasty one!&lt;BR /&gt;
&lt;BR /&gt;
I remember that there is a very good SAS whitepaper or SUGI/SEUGI paper explaining why this can happen - but I just can't find it anymore!!!&lt;BR /&gt;
&lt;BR /&gt;
What I remember from this paper is that the cause of the problem is how numbers are digitally represented/stored in SAS vs. Oracle (or DB2) - and also under different platforms like Windows/Unix/zOS. It was very clear and obvious.&lt;BR /&gt;
&lt;BR /&gt;
I believe the solution was using the round() function when loading to Oracle - but I'm just no more able to recall the details.&lt;BR /&gt;
&lt;BR /&gt;
Let me know in case you find this paper. It's one I should store in "my box".&lt;BR /&gt;
&lt;BR /&gt;
Cheers, Patrick&lt;BR /&gt;
&lt;BR /&gt;
Just found this SAS note which points in the same direction. "endian byte order" seems to be a key word.

Message was edited by: Patrick</description>
      <pubDate>Thu, 26 Feb 2009 13:15:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Loading-Data-into-DB2-Table/m-p/75153#M16178</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2009-02-26T13:15:22Z</dc:date>
    </item>
    <item>
      <title>Re: Loading Data into DB2 Table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Loading-Data-into-DB2-Table/m-p/75154#M16179</link>
      <description>Thanks Patrick For your reply,&lt;BR /&gt;
But round() is not working in DB2,If you Find some thing let me know.&lt;BR /&gt;
Thanks</description>
      <pubDate>Thu, 26 Feb 2009 15:13:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Loading-Data-into-DB2-Table/m-p/75154#M16179</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-02-26T15:13:56Z</dc:date>
    </item>
    <item>
      <title>Re: Loading Data into DB2 Table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Loading-Data-into-DB2-Table/m-p/75155#M16180</link>
      <description>Found something:&lt;BR /&gt;
&lt;A href="http://support.sas.com/techsup/technote/ts654.pdf" target="_blank"&gt;http://support.sas.com/techsup/technote/ts654.pdf&lt;/A&gt;&lt;BR /&gt;
HTH&lt;BR /&gt;
Patrick</description>
      <pubDate>Thu, 26 Feb 2009 21:44:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Loading-Data-into-DB2-Table/m-p/75155#M16180</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2009-02-26T21:44:26Z</dc:date>
    </item>
  </channel>
</rss>

