<?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: DB2 to SAS appending issue. Retriview DB2 session log file. in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/DB2-to-SAS-appending-issue-Retriview-DB2-session-log-file/m-p/104881#M21862</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Linus,&lt;/P&gt;&lt;P&gt;Thanks for the answer:)...&lt;/P&gt;&lt;P&gt;DB2 DBA is on long vacation:)&lt;/P&gt;&lt;P&gt;I've just made small script that replace all numeric values in table by "1" value, and tried append the test data to DB2 table - same error...&lt;/P&gt;&lt;P&gt;I thought I'll simply exclude statements : "numColName=1;" from the script and in such way will define needed column, but looks like issue isn't so obvious as I thought...May be there are some problem with nulls,date(datetime) columns also...&lt;/P&gt;&lt;P&gt;Will look deeper to the issue...I just feel that I spend time on things that can be done more efficient, but I'm not sure:)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 08 Aug 2013 09:13:15 GMT</pubDate>
    <dc:creator>Yura2301</dc:creator>
    <dc:date>2013-08-08T09:13:15Z</dc:date>
    <item>
      <title>DB2 to SAS appending issue. Retriview DB2 session log file.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/DB2-to-SAS-appending-issue-Retriview-DB2-session-log-file/m-p/104878#M21859</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;So I try to append SAS data set with a&amp;nbsp; lot of columns(~100) to DB2 table:&lt;/P&gt;&lt;P&gt;LIBNAME db2Lib DB2&amp;nbsp; DBCOMMIT=10000&amp;nbsp; ...;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc append base=db2Lib.db2Tab data= SASData;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For some portion of SAS data append works ok and add needed data to DB2 table, but for another portion - it failed with CLI error:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;ERROR: CLI execute error: [IBM][CLI Driver] CLI0111E&amp;nbsp; Numeric value out of range. SQLSTATE=22003&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;In SAS log file no info in what exact numeric column issue happened, I also don't like idea sequentially append separate columns for finding&amp;nbsp; needed one...&lt;/P&gt;&lt;P&gt;On DB2 forums I found that the columns can be easy detected from DB2 session log, but I haven't appropriate rights for accessing DB2 log file, all what I can do - it's query(or insert,update) DB2 table from SAS.&lt;/P&gt;&lt;P&gt;So if there are some smart way for detecting the column&amp;nbsp; in which similar issue happened?&lt;/P&gt;&lt;P&gt;May be there is possibility somehow direct DB2 log into some SAS server folder etc.? I tried &lt;STRONG&gt;sastrace&lt;/STRONG&gt; option but it didn't helped...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Aug 2013 08:59:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/DB2-to-SAS-appending-issue-Retriview-DB2-session-log-file/m-p/104878#M21859</guid>
      <dc:creator>Yura2301</dc:creator>
      <dc:date>2013-08-08T08:59:41Z</dc:date>
    </item>
    <item>
      <title>Re: DB2 to SAS appending issue. Retriview DB2 session log file.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/DB2-to-SAS-appending-issue-Retriview-DB2-session-log-file/m-p/104879#M21860</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;From the SAS perspective, I don't think there a "smart way", you need more or less manually detect which column/value pair that is causing the error.&lt;/P&gt;&lt;P&gt;Guessing that the easiest way is getting help from your DB2 DBA.&lt;/P&gt;&lt;P&gt;Yet a reason for not having wide tables... &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Aug 2013 09:06:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/DB2-to-SAS-appending-issue-Retriview-DB2-session-log-file/m-p/104879#M21860</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2013-08-08T09:06:54Z</dc:date>
    </item>
    <item>
      <title>Re: DB2 to SAS appending issue. Retriview DB2 session log file.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/DB2-to-SAS-appending-issue-Retriview-DB2-session-log-file/m-p/104880#M21861</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What you could do is to get the max value from each column, and then match that with the DB2 data types, could at least save some work...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Aug 2013 09:10:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/DB2-to-SAS-appending-issue-Retriview-DB2-session-log-file/m-p/104880#M21861</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2013-08-08T09:10:05Z</dc:date>
    </item>
    <item>
      <title>Re: DB2 to SAS appending issue. Retriview DB2 session log file.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/DB2-to-SAS-appending-issue-Retriview-DB2-session-log-file/m-p/104881#M21862</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Linus,&lt;/P&gt;&lt;P&gt;Thanks for the answer:)...&lt;/P&gt;&lt;P&gt;DB2 DBA is on long vacation:)&lt;/P&gt;&lt;P&gt;I've just made small script that replace all numeric values in table by "1" value, and tried append the test data to DB2 table - same error...&lt;/P&gt;&lt;P&gt;I thought I'll simply exclude statements : "numColName=1;" from the script and in such way will define needed column, but looks like issue isn't so obvious as I thought...May be there are some problem with nulls,date(datetime) columns also...&lt;/P&gt;&lt;P&gt;Will look deeper to the issue...I just feel that I spend time on things that can be done more efficient, but I'm not sure:)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Aug 2013 09:13:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/DB2-to-SAS-appending-issue-Retriview-DB2-session-log-file/m-p/104881#M21862</guid>
      <dc:creator>Yura2301</dc:creator>
      <dc:date>2013-08-08T09:13:15Z</dc:date>
    </item>
    <item>
      <title>Re: DB2 to SAS appending issue. Retriview DB2 session log file.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/DB2-to-SAS-appending-issue-Retriview-DB2-session-log-file/m-p/104882#M21863</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check the value of the numeric value in &lt;A&gt;DB2&lt;/A&gt;. It can easily contain many many digits. You can be fooled by intrepretation issues. &lt;BR /&gt;And by the way IBAN (&lt;A href="http://en.wikipedia.org/wiki/International_Bank_Account_Number" title="http://en.wikipedia.org/wiki/International_Bank_Account_Number"&gt;International Bank Account Number - Wikipedia, the free encyclopedia&lt;/A&gt;) is no number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/acreldb/66690/HTML/default/viewer.htm#p0o54jcy958qywn14c8lvt39pgjt.htm" title="http://support.sas.com/documentation/cdl/en/acreldb/66690/HTML/default/viewer.htm#p0o54jcy958qywn14c8lvt39pgjt.htm"&gt;SAS/ACCESS(R) 9.4 for Relational Databases: Reference, Second Edition&lt;/A&gt; (Data Types for DB2 under &lt;SPAN class="xis-nobr"&gt;z/OS)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="xis-nobr"&gt;Not all datatypes of DB/2 are supported. The question will be weather you are able to see some layout as DB/2 knows it. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;BR /&gt;It could be a bug like: &lt;A href="http://www-01.ibm.com/support/docview.wss?uid=swg1JR34268" title="http://www-01.ibm.com/support/docview.wss?uid=swg1JR34268"&gt;IBM JR34268: CLI0111E NUMERIC VALUE OUT OF RANGE WHEN EXTRACTING DECIMAL DATA USING DB2 CLI ODBC DRIVER - United States&lt;/A&gt; . As you have worked before with the data and tools it is not likely. This one is specific to a ODBC type.&lt;/P&gt;&lt;P&gt;The most reliable way to connect to DB2 is using DB2 with SAS on mainframe. What SAS version / server you are using?&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/kb/42/119.html" title="http://support.sas.com/kb/42/119.html"&gt;42119 - An error is issued when you attempt to register a DB2 table in metadata&lt;/A&gt; (bigint issue translation on numbers)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Aug 2013 10:53:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/DB2-to-SAS-appending-issue-Retriview-DB2-session-log-file/m-p/104882#M21863</guid>
      <dc:creator>jakarman</dc:creator>
      <dc:date>2013-08-08T10:53:38Z</dc:date>
    </item>
    <item>
      <title>Re: DB2 to SAS appending issue. Retriview DB2 session log file.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/DB2-to-SAS-appending-issue-Retriview-DB2-session-log-file/m-p/104883#M21864</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jaap,&lt;/P&gt;&lt;P&gt;I still use SAS 9.1.3, your remark regarding numeric columns with many digits looks like possible reason of the issue...&lt;/P&gt;&lt;P&gt;Now I'll working on script that will automatically find column in SAS dataset that has value biggest then maximal allowed for needed DB2 datatype(decimal, smallint etc.).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Aug 2013 11:03:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/DB2-to-SAS-appending-issue-Retriview-DB2-session-log-file/m-p/104883#M21864</guid>
      <dc:creator>Yura2301</dc:creator>
      <dc:date>2013-08-08T11:03:48Z</dc:date>
    </item>
  </channel>
</rss>

