<?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: Oracle error ORA-22835 in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Oracle-error-ORA-22835/m-p/339508#M77451</link>
    <description>proc contents will certainly help for a start. It might give some clues. &lt;BR /&gt;</description>
    <pubDate>Thu, 09 Mar 2017 02:42:19 GMT</pubDate>
    <dc:creator>LaurieF</dc:creator>
    <dc:date>2017-03-09T02:42:19Z</dc:date>
    <item>
      <title>Oracle error ORA-22835</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Oracle-error-ORA-22835/m-p/339501#M77447</link>
      <description>&lt;P&gt;I am trying to read an Oracle view using Windows Base SAS. &amp;nbsp;The SAS error log is returning and error message "Error fetching from cursor. &amp;nbsp;ORACLE error is ora-22835. &amp;nbsp;Buffer too small for CLOB to CHAR or BLOB to RAW conversion (actual: 4254, maximum: 4000). &amp;nbsp;SAS read 210000 observations before abnormally terminating. &amp;nbsp;Does anyone know a solution to this issue?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks, &amp;nbsp;tmg02&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Mar 2017 01:33:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Oracle-error-ORA-22835/m-p/339501#M77447</guid>
      <dc:creator>tmg02</dc:creator>
      <dc:date>2017-03-09T01:33:48Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle error ORA-22835</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Oracle-error-ORA-22835/m-p/339504#M77448</link>
      <description>&lt;P&gt;Can you show your query? At least the bit where you're referencing a CLOB column (I assume that's the problem).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the meantime, if you don't need to read the whole of the column, a substr may help.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Mar 2017 01:54:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Oracle-error-ORA-22835/m-p/339504#M77448</guid>
      <dc:creator>LaurieF</dc:creator>
      <dc:date>2017-03-09T01:54:40Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle error ORA-22835</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Oracle-error-ORA-22835/m-p/339506#M77449</link>
      <description>&lt;PRE&gt;
You can drop that column if it does not mean anything.
OR
you can convert it into CHAR at ORACLE side, and import it into SAS .

create view xx as
select ......,tochar(CLOB) as new


&lt;/PRE&gt;</description>
      <pubDate>Thu, 09 Mar 2017 02:33:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Oracle-error-ORA-22835/m-p/339506#M77449</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2017-03-09T02:33:08Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle error ORA-22835</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Oracle-error-ORA-22835/m-p/339507#M77450</link>
      <description>&lt;P&gt;Hi Laurie,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for offering to help. &amp;nbsp;I'm not actually referencing the CLOB column. &amp;nbsp;The code references the Oracle view and I assume that one of the fields in this view is a CLOB or BLOB. &amp;nbsp;I'm not sure which field is throwing the error, but SAS successfully reads over 200,000 records before throwing the error. &amp;nbsp;Unfortunately, there is no data dictionary available for the view and IT is not willing to provide one. &amp;nbsp;Maybe I should start with a proc contents to see what is actually stored on Oracle?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-Todd&lt;/P&gt;</description>
      <pubDate>Thu, 09 Mar 2017 02:40:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Oracle-error-ORA-22835/m-p/339507#M77450</guid>
      <dc:creator>tmg02</dc:creator>
      <dc:date>2017-03-09T02:40:45Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle error ORA-22835</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Oracle-error-ORA-22835/m-p/339508#M77451</link>
      <description>proc contents will certainly help for a start. It might give some clues. &lt;BR /&gt;</description>
      <pubDate>Thu, 09 Mar 2017 02:42:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Oracle-error-ORA-22835/m-p/339508#M77451</guid>
      <dc:creator>LaurieF</dc:creator>
      <dc:date>2017-03-09T02:42:19Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle error ORA-22835</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Oracle-error-ORA-22835/m-p/339509#M77452</link>
      <description>How do I figure out which field in the view is causing the error? I only have read rights on the Oracle view so I need to have a SAS solution. Thanks for your help. Much appreciated.</description>
      <pubDate>Thu, 09 Mar 2017 02:42:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Oracle-error-ORA-22835/m-p/339509#M77452</guid>
      <dc:creator>tmg02</dc:creator>
      <dc:date>2017-03-09T02:42:52Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle error ORA-22835</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Oracle-error-ORA-22835/m-p/339510#M77453</link>
      <description>&lt;P&gt;I don't have Oracle access here, but you may be able to investigate the metadata Oracle table&amp;nbsp;&lt;EM&gt;all_tab_columns&lt;/EM&gt; where table_name =&amp;nbsp;&lt;EM&gt;your table&lt;/EM&gt;. That will show the column types.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Alternatively,&amp;nbsp;&lt;EM&gt;proc contents&lt;/EM&gt; on the Oracle view&amp;nbsp;&lt;EM&gt;or&lt;/EM&gt; do a subset extract:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql outobs=10000;
create table x 
   from connection to oracle( 
etc etc
);&lt;BR /&gt;(or from view of Oracle table, of course)
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;then do a&amp;nbsp;&lt;EM&gt;contents&lt;/EM&gt; on that.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Mar 2017 09:56:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Oracle-error-ORA-22835/m-p/339510#M77453</guid>
      <dc:creator>LaurieF</dc:creator>
      <dc:date>2017-03-09T09:56:20Z</dc:date>
    </item>
  </channel>
</rss>

