<?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 ERROR: CLI cursor fetch error: [IBM][CLI Driver][AS] SQL0904N in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/DB2-ERROR-CLI-cursor-fetch-error-IBM-CLI-Driver-AS-SQL0904N/m-p/722724#M224142</link>
    <description>&lt;P&gt;Please make sure that the example code you show is as submitted. When you start trying to hide things details may be obscured.&lt;/P&gt;
&lt;P&gt;What you show&lt;/P&gt;
&lt;P&gt;PROC SQL;&lt;BR /&gt;CREATE TABLE XXXX AS&lt;BR /&gt;SELECT DATE, TERMINAL, TRACKID FROM &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;XXX&lt;/STRONG&gt;&lt;/FONT&gt;.XXXX;&lt;BR /&gt;QUIT;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The XXX would be the LIBNAME, which you show as defined as XXXX. So hiding information with too many XXX's is likely hiding the actual problem between the schema, the libname and the table name(s).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best is to show the LOG, copy from the log with the libname connection string, submitted code and all the notes and error messages. Paste into a text box opened on the forum with the &amp;lt;/&amp;gt;. Edit the password/user information if needed.&lt;/P&gt;
&lt;P&gt;If your Library and table names are that sensitive then perhaps that needs to be addressed internally.&lt;/P&gt;</description>
    <pubDate>Mon, 01 Mar 2021 22:25:22 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2021-03-01T22:25:22Z</dc:date>
    <item>
      <title>DB2 ERROR: CLI cursor fetch error: [IBM][CLI Driver][AS] SQL0904N</title>
      <link>https://communities.sas.com/t5/SAS-Programming/DB2-ERROR-CLI-cursor-fetch-error-IBM-CLI-Driver-AS-SQL0904N/m-p/722703#M224127</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We are getting&amp;nbsp;&lt;SPAN&gt;&lt;STRONG&gt;ERROR: CLI cursor fetch error: [IBM][CLI Driver][AS] SQL0904N Unsuccessful execution caused by an unavailable resource. Reason code: "13", type of resource: "423", and resource name: "". SQLSTATE=57011&lt;/STRONG&gt; while running a simple code as below.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;P&gt;libname XXXX ODBC user=XXXX password=XXXX schema='XXXXX' UTILCONN_TRANSIENT=YES DATAsrc=XXXX dbsliceparm=all;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PROC SQL;&lt;BR /&gt;CREATE TABLE XXXX AS&lt;BR /&gt;SELECT DATE, TERMINAL, TRACKID FROM XXX.XXXX;&lt;BR /&gt;QUIT;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 01 Mar 2021 21:10:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/DB2-ERROR-CLI-cursor-fetch-error-IBM-CLI-Driver-AS-SQL0904N/m-p/722703#M224127</guid>
      <dc:creator>sureshbaipu1</dc:creator>
      <dc:date>2021-03-01T21:10:18Z</dc:date>
    </item>
    <item>
      <title>Re: DB2 ERROR: CLI cursor fetch error: [IBM][CLI Driver][AS] SQL0904N</title>
      <link>https://communities.sas.com/t5/SAS-Programming/DB2-ERROR-CLI-cursor-fetch-error-IBM-CLI-Driver-AS-SQL0904N/m-p/722724#M224142</link>
      <description>&lt;P&gt;Please make sure that the example code you show is as submitted. When you start trying to hide things details may be obscured.&lt;/P&gt;
&lt;P&gt;What you show&lt;/P&gt;
&lt;P&gt;PROC SQL;&lt;BR /&gt;CREATE TABLE XXXX AS&lt;BR /&gt;SELECT DATE, TERMINAL, TRACKID FROM &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;XXX&lt;/STRONG&gt;&lt;/FONT&gt;.XXXX;&lt;BR /&gt;QUIT;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The XXX would be the LIBNAME, which you show as defined as XXXX. So hiding information with too many XXX's is likely hiding the actual problem between the schema, the libname and the table name(s).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best is to show the LOG, copy from the log with the libname connection string, submitted code and all the notes and error messages. Paste into a text box opened on the forum with the &amp;lt;/&amp;gt;. Edit the password/user information if needed.&lt;/P&gt;
&lt;P&gt;If your Library and table names are that sensitive then perhaps that needs to be addressed internally.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Mar 2021 22:25:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/DB2-ERROR-CLI-cursor-fetch-error-IBM-CLI-Driver-AS-SQL0904N/m-p/722724#M224142</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2021-03-01T22:25:22Z</dc:date>
    </item>
    <item>
      <title>Re: DB2 ERROR: CLI cursor fetch error: [IBM][CLI Driver][AS] SQL0904N</title>
      <link>https://communities.sas.com/t5/SAS-Programming/DB2-ERROR-CLI-cursor-fetch-error-IBM-CLI-Driver-AS-SQL0904N/m-p/722729#M224145</link>
      <description>&lt;P&gt;Sorry, Here is the sample code&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;libname abc ODBC user=def password=def1 schema='TEST' UTILCONN_TRANSIENT=YES DATAsrc=DB2 dbsliceparm=all;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PROC SQL;&lt;BR /&gt;CREATE TABLE test_table AS&lt;BR /&gt;SELECT DATE, TERMINAL, TRACKID FROM abc.emp;&lt;BR /&gt;QUIT;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Mar 2021 22:35:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/DB2-ERROR-CLI-cursor-fetch-error-IBM-CLI-Driver-AS-SQL0904N/m-p/722729#M224145</guid>
      <dc:creator>sureshbaipu1</dc:creator>
      <dc:date>2021-03-01T22:35:48Z</dc:date>
    </item>
    <item>
      <title>Re: DB2 ERROR: CLI cursor fetch error: [IBM][CLI Driver][AS] SQL0904N</title>
      <link>https://communities.sas.com/t5/SAS-Programming/DB2-ERROR-CLI-cursor-fetch-error-IBM-CLI-Driver-AS-SQL0904N/m-p/722735#M224149</link>
      <description>Here is the Log&lt;BR /&gt;&lt;BR /&gt;1 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;7273&lt;BR /&gt;libname abc ODBC user=def password=def1 schema='TEST' UTILCONN_TRANSIENT=YES DATAsrc=cana dbsliceparm=all;&lt;BR /&gt;&lt;BR /&gt;NOTE: Libref abc was successfully assigned as follows:Engine: ODBC Physical Name: cana 7475&lt;BR /&gt;PROC SQL;76 CREATE TABLE test_table AS77 SELECT DATE, TERMINAL, TRACKID FROM canamst.INT606F WHERE DATE BETWEEN 1210201 AND 1210208;&lt;BR /&gt;ERROR: CLI cursor fetch error: [IBM][CLI Driver][AS] SQL0904N Unsuccessful execution caused by an unavailable resource. Reason code: "13", type of resource: "423", and resource name: "". SQLSTATE=57011NOTE: Compressing data set WORK.test_table increased size by 20.33 percent.Compressed is 290 pages; un-compressed would require 241 pages.NOTE: PROC SQL set option NOEXEC and will continue to check the syntax of statements.78 QUIT;NOTE: The SAS System stopped processing this step because of errors.NOTE: PROCEDURE SQL used (Total process time):real time 14.97 secondscpu time 1.19 seconds7980 run;8182 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;94</description>
      <pubDate>Mon, 01 Mar 2021 22:47:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/DB2-ERROR-CLI-cursor-fetch-error-IBM-CLI-Driver-AS-SQL0904N/m-p/722735#M224149</guid>
      <dc:creator>sureshbaipu1</dc:creator>
      <dc:date>2021-03-01T22:47:41Z</dc:date>
    </item>
    <item>
      <title>Re: DB2 ERROR: CLI cursor fetch error: [IBM][CLI Driver][AS] SQL0904N</title>
      <link>https://communities.sas.com/t5/SAS-Programming/DB2-ERROR-CLI-cursor-fetch-error-IBM-CLI-Driver-AS-SQL0904N/m-p/722739#M224151</link>
      <description>&lt;P&gt;Do you know if the table you are attempted to use is an actual table or a view in the DB2 database?&lt;/P&gt;
&lt;P&gt;I am guessing here as I don't use DB2 but that missing resource name makes me wonder if you are accessing a view that needs to run dynamically at access time and either you do not have permissions or something may not be set correctly in your ODBC connection.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;From &lt;A href="https://www.ibm.com/support/pages/anr0172i-and-anr0162w-failure-when-attempting-start-server" target="_blank"&gt;https://www.ibm.com/support/pages/anr0172i-and-anr0162w-failure-when-attempting-start-server&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV class="clearfix text-formatted field field--name-field-symptom field--type-text-long field--label-above"&gt;
&lt;BLOCKQUOTE&gt;
&lt;P class="ibm-northstart-documentation-information-data"&gt;SQL6030N START or STOP DATABASE MANAGER failed. Reason code "13".&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;/DIV&gt;
&lt;BLOCKQUOTE&gt;
&lt;DIV class="clearfix text-formatted field field--name-field-cause field--type-text-long field--label-above"&gt;
&lt;H2 class="ibm-h4 ibm-bold ibm-northstart-documentation-information-label"&gt;Cause&lt;/H2&gt;
&lt;P class="ibm-northstart-documentation-information-data"&gt;The Tivoli Storage Manager fails due to the DB2 Database manager failing to start.&lt;/P&gt;
&lt;/DIV&gt;
&lt;DIV class="clearfix text-formatted field field--name-field-diagnosis field--type-text-long field--label-above"&gt;
&lt;H2 class="ibm-h4 ibm-bold ibm-northstart-documentation-information-label"&gt;Diagnosing The Problem&lt;/H2&gt;
&lt;P class="ibm-northstart-documentation-information-data"&gt;The problem can be verified by issuing the 'db2start' command. &lt;BR /&gt;Start the Database manager with the db2start command. In this example db2start failed with the following error:&lt;BR /&gt;&lt;BR /&gt;&amp;gt; db2start &lt;BR /&gt;SQL6030N START or STOP DATABASE MANAGER failed. Reason code "13".&lt;BR /&gt;&lt;BR /&gt;RC =13 is a DB2 return code that means:&lt;BR /&gt;No port value is defined for your DB2 instance id (/etc/services file on UNIX-based systems).&lt;/P&gt;
&lt;/DIV&gt;
&lt;DIV class="clearfix text-formatted field field--name-field-resolution field--type-text-long field--label-above"&gt;
&lt;H2 class="ibm-h4 ibm-bold ibm-northstart-documentation-information-label"&gt;&amp;nbsp;&lt;/H2&gt;
&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Mon, 01 Mar 2021 23:27:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/DB2-ERROR-CLI-cursor-fetch-error-IBM-CLI-Driver-AS-SQL0904N/m-p/722739#M224151</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2021-03-01T23:27:07Z</dc:date>
    </item>
  </channel>
</rss>

