<?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 Length of column getting truncated while reading from Oracle DB in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Length-of-column-getting-truncated-while-reading-from-Oracle-DB/m-p/255180#M48728</link>
    <description>&lt;P&gt;I need to look at the query for a view in Oracle DB. Hence I run the following: "select * from all_views where view_name=..." to get the record for a particular view. I get a truncated "Text" column. For the particular view, "Text_length" = 5558 but length of "Text" is only 1000.&lt;BR /&gt;Looks like this is a drawback of SAS as the URL &lt;A href="http://support.sas.com/kb/36/237.html" target="_blank"&gt;http://support.sas.com/kb/36/237.html&lt;/A&gt; says that "Currently, there is no solution or workaround for this problem."&lt;/P&gt;
&lt;P&gt;Please suggest what should be done. &lt;/P&gt;</description>
    <pubDate>Tue, 08 Mar 2016 07:28:24 GMT</pubDate>
    <dc:creator>abhik_giri</dc:creator>
    <dc:date>2016-03-08T07:28:24Z</dc:date>
    <item>
      <title>Length of column getting truncated while reading from Oracle DB</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Length-of-column-getting-truncated-while-reading-from-Oracle-DB/m-p/255180#M48728</link>
      <description>&lt;P&gt;I need to look at the query for a view in Oracle DB. Hence I run the following: "select * from all_views where view_name=..." to get the record for a particular view. I get a truncated "Text" column. For the particular view, "Text_length" = 5558 but length of "Text" is only 1000.&lt;BR /&gt;Looks like this is a drawback of SAS as the URL &lt;A href="http://support.sas.com/kb/36/237.html" target="_blank"&gt;http://support.sas.com/kb/36/237.html&lt;/A&gt; says that "Currently, there is no solution or workaround for this problem."&lt;/P&gt;
&lt;P&gt;Please suggest what should be done. &lt;/P&gt;</description>
      <pubDate>Tue, 08 Mar 2016 07:28:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Length-of-column-getting-truncated-while-reading-from-Oracle-DB/m-p/255180#M48728</guid>
      <dc:creator>abhik_giri</dc:creator>
      <dc:date>2016-03-08T07:28:24Z</dc:date>
    </item>
    <item>
      <title>Re: Length of column getting truncated while reading from Oracle DB</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Length-of-column-getting-truncated-while-reading-from-Oracle-DB/m-p/255185#M48731</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have a look at the &lt;A href="http://support.sas.com/documentation/cdl/en/acreldb/68028/HTML/default/viewer.htm#n1aqglg4ftdj04n1eyvh2l3367ql.htm" target="_blank"&gt;DBMAX_TEXT&lt;/A&gt; option. This option sets the maximum length of char variable coming from the DBMS.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;See example below&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
  connect to oracle (
    path="host/dbms"
    user=yourUser
    password=yourPassword
    DBMAX_TEXT=32767
  );

  create table myViews as
  select
    *
  from 
    connection to oracle (
    select * from all_views 
  )
  ;
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Bruno&lt;/P&gt;</description>
      <pubDate>Tue, 08 Mar 2016 07:43:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Length-of-column-getting-truncated-while-reading-from-Oracle-DB/m-p/255185#M48731</guid>
      <dc:creator>BrunoMueller</dc:creator>
      <dc:date>2016-03-08T07:43:57Z</dc:date>
    </item>
    <item>
      <title>Re: Length of column getting truncated while reading from Oracle DB</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Length-of-column-getting-truncated-while-reading-from-Oracle-DB/m-p/255195#M48737</link>
      <description>&lt;P&gt;In addition, I would check why the database has a field setup which is &amp;gt;5.5k characters in length in the first place. &amp;nbsp;E.g. a) is a database a good format for what is essentially a book, and b) if it needs to be in the database, why is it not coded, or reduced into component rows of &amp;lt; 200 characters? &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Mar 2016 09:18:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Length-of-column-getting-truncated-while-reading-from-Oracle-DB/m-p/255195#M48737</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2016-03-08T09:18:32Z</dc:date>
    </item>
  </channel>
</rss>

