<?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 ERROR: CLI cursor fetch error: Numeric value out of range in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/ERROR-CLI-cursor-fetch-error-Numeric-value-out-of-range/m-p/691408#M210431</link>
    <description>&lt;P&gt;Dear Community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was using SAS EG to&amp;nbsp;pull data from a Netezza database using below code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#000080"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT face="Courier New" size="3" color="#000080"&gt;sql&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT face="Courier New" size="3" color="#0000ff"&gt;outobs&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT face="Courier New" size="3" color="#008080"&gt;10&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;connect&lt;/FONT&gt; &lt;FONT face="Courier New" size="3" color="#0000ff"&gt;to&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; odbc(dsn=Netezza_PROD uid=xxxxx password = xxxxx); &lt;/FONT&gt;&lt;FONT face="Courier New" size="3" color="#ffffff"&gt;* Retail Deposit;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;create&lt;/FONT&gt; &lt;FONT face="Courier New" size="3" color="#0000ff"&gt;table&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&amp;nbsp;test &lt;/FONT&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;as&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;select&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; * &lt;/FONT&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;from&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; connection to odbc(&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;select&lt;/FONT&gt; &lt;FONT face="Courier New" size="3"&gt;*&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;from&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; database.dbadmin.table&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;);&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;disconnect&lt;/FONT&gt; &lt;FONT face="Courier New" size="3" color="#0000ff"&gt;from&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; odbc;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#000080"&gt;&lt;STRONG&gt;quit&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I&amp;nbsp;got this error "ERROR: CLI cursor fetch error: Numeric value out of range".&lt;/P&gt;&lt;P&gt;&amp;nbsp;I&amp;nbsp;found the answer in this post is helpful &lt;A href="https://communities.sas.com/t5/SAS-Programming/quot-CLI-cursor-extended-fetch-error-Numeric-value-out-of-range/td-p/323830" target="_self"&gt;https://communities.sas.com/t5/SAS-Programming/quot-CLI-cursor-extended-fetch-error-Numeric-value-out-of-range/td-p/323830&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But in my case, I have lots of variables and it's hard to check which variable is the issue one.. Need your help please.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
    <pubDate>Tue, 13 Oct 2020 20:59:01 GMT</pubDate>
    <dc:creator>HaveFunWSAS</dc:creator>
    <dc:date>2020-10-13T20:59:01Z</dc:date>
    <item>
      <title>ERROR: CLI cursor fetch error: Numeric value out of range</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-CLI-cursor-fetch-error-Numeric-value-out-of-range/m-p/691408#M210431</link>
      <description>&lt;P&gt;Dear Community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was using SAS EG to&amp;nbsp;pull data from a Netezza database using below code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#000080"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT face="Courier New" size="3" color="#000080"&gt;sql&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT face="Courier New" size="3" color="#0000ff"&gt;outobs&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT face="Courier New" size="3" color="#008080"&gt;10&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;connect&lt;/FONT&gt; &lt;FONT face="Courier New" size="3" color="#0000ff"&gt;to&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; odbc(dsn=Netezza_PROD uid=xxxxx password = xxxxx); &lt;/FONT&gt;&lt;FONT face="Courier New" size="3" color="#ffffff"&gt;* Retail Deposit;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;create&lt;/FONT&gt; &lt;FONT face="Courier New" size="3" color="#0000ff"&gt;table&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&amp;nbsp;test &lt;/FONT&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;as&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;select&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; * &lt;/FONT&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;from&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; connection to odbc(&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;select&lt;/FONT&gt; &lt;FONT face="Courier New" size="3"&gt;*&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;from&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; database.dbadmin.table&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;);&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;disconnect&lt;/FONT&gt; &lt;FONT face="Courier New" size="3" color="#0000ff"&gt;from&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; odbc;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#000080"&gt;&lt;STRONG&gt;quit&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I&amp;nbsp;got this error "ERROR: CLI cursor fetch error: Numeric value out of range".&lt;/P&gt;&lt;P&gt;&amp;nbsp;I&amp;nbsp;found the answer in this post is helpful &lt;A href="https://communities.sas.com/t5/SAS-Programming/quot-CLI-cursor-extended-fetch-error-Numeric-value-out-of-range/td-p/323830" target="_self"&gt;https://communities.sas.com/t5/SAS-Programming/quot-CLI-cursor-extended-fetch-error-Numeric-value-out-of-range/td-p/323830&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But in my case, I have lots of variables and it's hard to check which variable is the issue one.. Need your help please.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Oct 2020 20:59:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-CLI-cursor-fetch-error-Numeric-value-out-of-range/m-p/691408#M210431</guid>
      <dc:creator>HaveFunWSAS</dc:creator>
      <dc:date>2020-10-13T20:59:01Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: CLI cursor fetch error: Numeric value out of range</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-CLI-cursor-fetch-error-Numeric-value-out-of-range/m-p/691413#M210432</link>
      <description>&lt;P&gt;SAS sets the variable value to missing for these errors. Check your output variables for missing values. AFAIK there is no shortcut to identifying the problematic variable.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Oct 2020 21:12:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-CLI-cursor-fetch-error-Numeric-value-out-of-range/m-p/691413#M210432</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2020-10-13T21:12:01Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: CLI cursor fetch error: Numeric value out of range</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-CLI-cursor-fetch-error-Numeric-value-out-of-range/m-p/691417#M210433</link>
      <description>&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I didn't see&amp;nbsp;output, sas stopped when meet this error.&lt;/P&gt;&lt;P&gt;-----------------------------------------------------&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;37 disconnect from odbc;&lt;/P&gt;&lt;P&gt;NOTE: Statement not executed due to NOEXEC option.&lt;/P&gt;&lt;P&gt;38 quit;&lt;/P&gt;&lt;P&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Tue, 13 Oct 2020 21:22:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-CLI-cursor-fetch-error-Numeric-value-out-of-range/m-p/691417#M210433</guid>
      <dc:creator>HaveFunWSAS</dc:creator>
      <dc:date>2020-10-13T21:22:16Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: CLI cursor fetch error: Numeric value out of range</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-CLI-cursor-fetch-error-Numeric-value-out-of-range/m-p/691425#M210437</link>
      <description>&lt;P&gt;It is likely you are going to have to cast columns with large numerics to character so SAS can handle them.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Run your test query selecting just one column, then add one column at a time to it until you get the error. I know this is tedious, but as I said I don't think there is a shortcut to identify the problematic columns.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Oct 2020 22:14:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-CLI-cursor-fetch-error-Numeric-value-out-of-range/m-p/691425#M210437</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2020-10-13T22:14:52Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: CLI cursor fetch error: Numeric value out of range</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-CLI-cursor-fetch-error-Numeric-value-out-of-range/m-p/691507#M210479</link>
      <description>&lt;P&gt;Netezza should maintain DICTIONARY tables, similar to those provided by SAS. These should give you the information you need to identify the problem variables.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Oct 2020 11:57:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-CLI-cursor-fetch-error-Numeric-value-out-of-range/m-p/691507#M210479</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-10-14T11:57:57Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: CLI cursor fetch error: Numeric value out of range</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-CLI-cursor-fetch-error-Numeric-value-out-of-range/m-p/691509#M210480</link>
      <description>&lt;P&gt;According to&amp;nbsp;&lt;A href="https://dwgeek.com/netezza-system-tables-views.html/" target="_blank" rel="noopener"&gt;https://dwgeek.com/netezza-system-tables-views.html/&lt;/A&gt;, the view is called&amp;nbsp;&lt;SPAN&gt;_v_sys_columns.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Oct 2020 12:02:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-CLI-cursor-fetch-error-Numeric-value-out-of-range/m-p/691509#M210480</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-10-14T12:02:06Z</dc:date>
    </item>
  </channel>
</rss>

