<?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 DB2 CLI ERROR WHEN JOINING SAS DATA SET AND DB2 TABLE.Suggest Efficient way in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/DB2-CLI-ERROR-WHEN-JOINING-SAS-DATA-SET-AND-DB2-TABLE-Suggest/m-p/90981#M19236</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;The problem I&amp;nbsp; am having is&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;In my case i have a data set with some thing about 10 million and i need to do a look up on DB2 table which contains about 600 million records based on iD and pull some information for that ID.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;I tried different ways like INNER JOIN ,sub query but i got a DB2 CLI error as the query is getting timed out&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;When i am doing subquery like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;Proc sql noprint;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;select id,info&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;from db2.table&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;where id in (select id from sas data set)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;The problem here is when this query goes to Db2 the query against d2 table is going the query other than subquery is sent to db2&amp;nbsp; and pulling the entire 600 million records and then executing the subquery as a result it is showing DB2 CLI cursor error.&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;Is it fine to use Hashing little skeptical about it.So is it fine if i load DB2 table into DATA STEP and load the 10 million into hashing.Will it give better performance.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;Please let me know how to achieve this efficiently.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 05 Dec 2012 11:28:15 GMT</pubDate>
    <dc:creator>JasonNC</dc:creator>
    <dc:date>2012-12-05T11:28:15Z</dc:date>
    <item>
      <title>DB2 CLI ERROR WHEN JOINING SAS DATA SET AND DB2 TABLE.Suggest Efficient way</title>
      <link>https://communities.sas.com/t5/SAS-Programming/DB2-CLI-ERROR-WHEN-JOINING-SAS-DATA-SET-AND-DB2-TABLE-Suggest/m-p/90981#M19236</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;The problem I&amp;nbsp; am having is&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;In my case i have a data set with some thing about 10 million and i need to do a look up on DB2 table which contains about 600 million records based on iD and pull some information for that ID.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;I tried different ways like INNER JOIN ,sub query but i got a DB2 CLI error as the query is getting timed out&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;When i am doing subquery like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;Proc sql noprint;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;select id,info&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;from db2.table&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;where id in (select id from sas data set)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;The problem here is when this query goes to Db2 the query against d2 table is going the query other than subquery is sent to db2&amp;nbsp; and pulling the entire 600 million records and then executing the subquery as a result it is showing DB2 CLI cursor error.&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;Is it fine to use Hashing little skeptical about it.So is it fine if i load DB2 table into DATA STEP and load the 10 million into hashing.Will it give better performance.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;Please let me know how to achieve this efficiently.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Dec 2012 11:28:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/DB2-CLI-ERROR-WHEN-JOINING-SAS-DATA-SET-AND-DB2-TABLE-Suggest/m-p/90981#M19236</guid>
      <dc:creator>JasonNC</dc:creator>
      <dc:date>2012-12-05T11:28:15Z</dc:date>
    </item>
    <item>
      <title>Re: DB2 CLI ERROR WHEN JOINING SAS DATA SET AND DB2 TABLE.Suggest Efficient way</title>
      <link>https://communities.sas.com/t5/SAS-Programming/DB2-CLI-ERROR-WHEN-JOINING-SAS-DATA-SET-AND-DB2-TABLE-Suggest/m-p/90982#M19237</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can achieve hashing in Proc SQL as well, but you can't force it... &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;If you have permissions, upload your table to DB2, and do the join there.&lt;/P&gt;&lt;P&gt;I presume that the id column is indexed in the db2 table, so try to use the DBKEY= option.&lt;/P&gt;&lt;P&gt;&lt;A class="active_link" href="http://support.sas.com/documentation/cdl/en/acreldb/63647/HTML/default/viewer.htm#a001371553.htm" title="http://support.sas.com/documentation/cdl/en/acreldb/63647/HTML/default/viewer.htm#a001371553.htm"&gt;http://support.sas.com/documentation/cdl/en/acreldb/63647/HTML/default/viewer.htm#a001371553.htm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Dec 2012 13:41:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/DB2-CLI-ERROR-WHEN-JOINING-SAS-DATA-SET-AND-DB2-TABLE-Suggest/m-p/90982#M19237</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2012-12-05T13:41:12Z</dc:date>
    </item>
    <item>
      <title>Re: DB2 CLI ERROR WHEN JOINING SAS DATA SET AND DB2 TABLE.Suggest Efficient way</title>
      <link>https://communities.sas.com/t5/SAS-Programming/DB2-CLI-ERROR-WHEN-JOINING-SAS-DATA-SET-AND-DB2-TABLE-Suggest/m-p/90983#M19238</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;reformat your where clause so all the work happens on the server:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where id in (&amp;amp;my_ids);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Dec 2012 15:40:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/DB2-CLI-ERROR-WHEN-JOINING-SAS-DATA-SET-AND-DB2-TABLE-Suggest/m-p/90983#M19238</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2012-12-05T15:40:01Z</dc:date>
    </item>
  </channel>
</rss>

