<?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: Issue in appending data into DB2 in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Issue-in-appending-data-into-DB2/m-p/347730#M273341</link>
    <description>&lt;P&gt;or upload sas table into db2 and&lt;/P&gt;
&lt;P&gt;use Pass-Through method.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc sql;&lt;/P&gt;
&lt;P&gt;connect to db2(.............);&lt;/P&gt;
&lt;P&gt;execute( inset into .....db2 sql here. &amp;nbsp;)&lt;/P&gt;
&lt;P&gt;by db2;&lt;/P&gt;
&lt;P&gt;quit;&lt;/P&gt;</description>
    <pubDate>Thu, 06 Apr 2017 14:04:14 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2017-04-06T14:04:14Z</dc:date>
    <item>
      <title>Issue in appending data into DB2</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Issue-in-appending-data-into-DB2/m-p/347668#M273338</link>
      <description>&lt;P&gt;I am moving the data from sas to DB2&amp;nbsp;using proc append. I use BULKLOAD, BL_METHOD and DBCOMMIT options.&lt;/P&gt;&lt;P&gt;I have not created any primary key on DB2 table and variable can contain null value.&lt;/P&gt;&lt;P&gt;While appending the data its reading all the observations from SAS datasets but its not writing all the observation&amp;nbsp;into DB2 table.&lt;/P&gt;&lt;P&gt;I have looked into the rejected obs and I don't see any issue with the data.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Log:&lt;/P&gt;&lt;P&gt;NOTE: There were 10911 observations read from the data set sas_lib.abc.&lt;BR /&gt;NOTE: 10911 observations added.&lt;BR /&gt;NOTE: The data set db2_lib.abc has . observations and 12 variables.&lt;BR /&gt;NOTE:&lt;/P&gt;&lt;P&gt;&amp;nbsp;Results for CLI LOAD operation:&lt;BR /&gt;&amp;nbsp;10900 rows loaded.&lt;BR /&gt;&amp;nbsp;0 rows skipped.&lt;BR /&gt;&amp;nbsp;0 rows rejected.&lt;BR /&gt;&amp;nbsp;0 rows deleted as duplicates.&lt;BR /&gt;10900 rows committed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please advise.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Apr 2017 11:58:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Issue-in-appending-data-into-DB2/m-p/347668#M273338</guid>
      <dc:creator>Ishaan</dc:creator>
      <dc:date>2017-04-06T11:58:08Z</dc:date>
    </item>
    <item>
      <title>Re: Issue in appending data into DB2</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Issue-in-appending-data-into-DB2/m-p/347685#M273339</link>
      <description>&lt;P&gt;Did you try the SQL ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc sql;&lt;/P&gt;
&lt;P&gt;insert into db2.xxx&lt;/P&gt;
&lt;P&gt;select * from sas.xxx;&lt;/P&gt;
&lt;P&gt;quit;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Apr 2017 12:51:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Issue-in-appending-data-into-DB2/m-p/347685#M273339</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2017-04-06T12:51:26Z</dc:date>
    </item>
    <item>
      <title>Re: Issue in appending data into DB2</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Issue-in-appending-data-into-DB2/m-p/347717#M273340</link>
      <description>&lt;P&gt;Yes, I tried using the proc sql. Still I am getting issue.&lt;/P&gt;&lt;P&gt;While loading I get error.&lt;/P&gt;&lt;P&gt;ERROR: During insert: [IBM][CLI Driver] CLI0111E&amp;nbsp; Numeric value out of range. SQLSTATE=22003&lt;/P&gt;</description>
      <pubDate>Thu, 06 Apr 2017 13:47:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Issue-in-appending-data-into-DB2/m-p/347717#M273340</guid>
      <dc:creator>Ishaan</dc:creator>
      <dc:date>2017-04-06T13:47:48Z</dc:date>
    </item>
    <item>
      <title>Re: Issue in appending data into DB2</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Issue-in-appending-data-into-DB2/m-p/347730#M273341</link>
      <description>&lt;P&gt;or upload sas table into db2 and&lt;/P&gt;
&lt;P&gt;use Pass-Through method.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc sql;&lt;/P&gt;
&lt;P&gt;connect to db2(.............);&lt;/P&gt;
&lt;P&gt;execute( inset into .....db2 sql here. &amp;nbsp;)&lt;/P&gt;
&lt;P&gt;by db2;&lt;/P&gt;
&lt;P&gt;quit;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Apr 2017 14:04:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Issue-in-appending-data-into-DB2/m-p/347730#M273341</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2017-04-06T14:04:14Z</dc:date>
    </item>
    <item>
      <title>Re: Issue in appending data into DB2</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Issue-in-appending-data-into-DB2/m-p/347774#M273342</link>
      <description>&lt;P&gt;Thank you. Its resolved. It had&amp;nbsp;length mismatch between the values in one of the var in sas and var in db2 table.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Apr 2017 15:13:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Issue-in-appending-data-into-DB2/m-p/347774#M273342</guid>
      <dc:creator>Ishaan</dc:creator>
      <dc:date>2017-04-06T15:13:59Z</dc:date>
    </item>
  </channel>
</rss>

