<?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: Unable to connect Db2 using openquery in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Unable-to-connect-Db2-using-openquery/m-p/388360#M93139</link>
    <description>&lt;P&gt;Please post your full SAS log including the source code. Looks like you are initially querying an SQL Server database that is linked to a DB2 database. One clue:&amp;nbsp;&lt;SPAN&gt;"ount(*) as countFROM" perhaps should be&amp;nbsp;"count(*) as countFROM"?&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 16 Aug 2017 02:32:11 GMT</pubDate>
    <dc:creator>SASKiwi</dc:creator>
    <dc:date>2017-08-16T02:32:11Z</dc:date>
    <item>
      <title>Unable to connect Db2 using openquery</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Unable-to-connect-Db2-using-openquery/m-p/388139#M93095</link>
      <description>&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am tryng extract data from db2 by using openquery in PTF application .But its getting below error(sharing log window).&lt;/P&gt;&lt;P&gt;i'm not able to extract data.Please help on this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Mahesh T.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ERROR: CLI describe error: [Microsoft][ODBC SQL Server Driver][SQL Server]Cannot get the column&lt;BR /&gt;information from OLE DB provider "IBMDADB2" for linked server "TOMEBBS". :&lt;BR /&gt;[Microsoft][ODBC SQL Server Driver][SQL Server]OLE DB provider "IBMDADB2" for linked&lt;BR /&gt;server "TOMEBBS" returned message "[DB2/LINUX] SQL0104N An unexpected token "db2inst1"&lt;BR /&gt;was found following "ount(*) as countFROM". Expected tokens may include: "FROM".&lt;BR /&gt;SQLSTATE=42601 ".&lt;BR /&gt;443&lt;BR /&gt;444 disconnect from odbc;&lt;BR /&gt;445 quit;&lt;BR /&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;BR /&gt;NOTE: PROCEDURE SQL used (Total process time):&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Aug 2017 13:34:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Unable-to-connect-Db2-using-openquery/m-p/388139#M93095</guid>
      <dc:creator>Mahesh_124</dc:creator>
      <dc:date>2017-08-15T13:34:48Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to connect Db2 using openquery</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Unable-to-connect-Db2-using-openquery/m-p/388360#M93139</link>
      <description>&lt;P&gt;Please post your full SAS log including the source code. Looks like you are initially querying an SQL Server database that is linked to a DB2 database. One clue:&amp;nbsp;&lt;SPAN&gt;"ount(*) as countFROM" perhaps should be&amp;nbsp;"count(*) as countFROM"?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Aug 2017 02:32:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Unable-to-connect-Db2-using-openquery/m-p/388360#M93139</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2017-08-16T02:32:11Z</dc:date>
    </item>
  </channel>
</rss>

