<?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: Truncated Characters when extracting in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Truncated-Characters-when-extracting/m-p/373010#M89222</link>
    <description>&lt;P&gt;this perfectly worked! thank you so much!!!&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/16719"&gt;@Miracle&lt;/a&gt; wrote:&lt;BR /&gt;&lt;P&gt;try&amp;nbsp;dbmax_text= in your proc sql&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.lexjansen.com/pharmasug/2006/TechnicalTechniques/TT15.pdf" target="_self"&gt;Using SAS® to Manage and Report Long Text Fields in a Clinical DBMS &lt;/A&gt;&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 04 Jul 2017 14:14:36 GMT</pubDate>
    <dc:creator>AJDELACRUZ0220</dc:creator>
    <dc:date>2017-07-04T14:14:36Z</dc:date>
    <item>
      <title>Truncated Characters when extracting</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Truncated-Characters-when-extracting/m-p/372987#M89208</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to extract information from Oracle database using the following command:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc sql;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;connect to odbc as hindsight (datasrc=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;'PostgreSQL30'&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; user=xxxxx password=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;"xxxx"&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;create table value04&amp;nbsp; as&lt;/P&gt;&lt;P&gt;select * from connection to hindsight&lt;/P&gt;&lt;P&gt;(SELECT fact_event.fact_id,fact_event.region_cd,fact_event.transaction_dte,fact_event.roll_num,&lt;/P&gt;&lt;P&gt;fact_event.property_cd,fact_event.property_desc,fact_event.cty_mun,value_dim.value_rounded, comp_dim.value_component_id,&lt;/P&gt;&lt;P&gt;comp_dim.transaction_dte, comp_dim.unadjusted, comp_dim.value, comp_dim.valuation_type, comp_dim.priority,&lt;/P&gt;&lt;P&gt;comp_dim.property_adjusted, comp_dim.component_adjusted, comp_dim.component_id, comp_dim.building_id_number,&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;comp_dim.variables&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;, comp_dim.active&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;FROM hindsight_3.fact_event fact_event&lt;/P&gt;&lt;P&gt;INNER JOIN&lt;/P&gt;&lt;P&gt;(SELECT roll_num, max(transaction_dte) as max_transaction_dte&lt;/P&gt;&lt;P&gt;FROM hindsight_3.fact_event fact_event&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;WHERE fact_event.event_type=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;'CMV'&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; and fact_event.status_cd=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;'A'&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;GROUP BY roll_num) transaction_dte on fact_event.roll_num=transaction_dte.roll_num and fact_event.transaction_dte=transaction_dte.max_transaction_dte&lt;/P&gt;&lt;P&gt;LEFT JOIN hindsight_3.property_dim property_dim ON fact_event.fact_id = property_dim.fact_id&lt;/P&gt;&lt;P&gt;LEFT JOIN hindsight_3.value_component_dim comp_dim ON fact_event.fact_id = comp_dim.fact_id&lt;/P&gt;&lt;P&gt;LEFT JOIN hindsight_3.value_dim value_dim ON fact_event.fact_id = value_dim.fact_id&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;WHERE ((substring(fact_event.region_cd,&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;1&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;,&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;1&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;) = &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;'0'&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; and substring(fact_event.region_cd,&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;2&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;,&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;1&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;) = '04') or fact_event.region_cd = '04')&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;and fact_event.event_type=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;'CMV'&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; and fact_event.status_cd=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;'A'&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; and property_dim.status_cd=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;'A'&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;ORDER BY fact_event.roll_num);&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I checked the "variables" column the data length is set to 1024 characters only whereas the original length of the variable is 65535.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you please let me know how to extract the complete "variables" column?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ave&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jul 2017 13:20:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Truncated-Characters-when-extracting/m-p/372987#M89208</guid>
      <dc:creator>AJDELACRUZ0220</dc:creator>
      <dc:date>2017-07-04T13:20:35Z</dc:date>
    </item>
    <item>
      <title>Re: Truncated Characters when extracting</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Truncated-Characters-when-extracting/m-p/372997#M89212</link>
      <description>&lt;P&gt;try&amp;nbsp;dbmax_text= in your proc sql&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.lexjansen.com/pharmasug/2006/TechnicalTechniques/TT15.pdf" target="_self"&gt;Using SAS® to Manage and Report Long Text Fields in a Clinical DBMS &lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jul 2017 13:42:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Truncated-Characters-when-extracting/m-p/372997#M89212</guid>
      <dc:creator>Miracle</dc:creator>
      <dc:date>2017-07-04T13:42:11Z</dc:date>
    </item>
    <item>
      <title>Re: Truncated Characters when extracting</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Truncated-Characters-when-extracting/m-p/372999#M89214</link>
      <description>&lt;P&gt;First of all, you won't be able to conserve the whole length, because the maximum length for a SAS character variable is 32767.&lt;/P&gt;
&lt;P&gt;So it's either that SAS sees that the variable is too long and sets 1024 on it's own, or it might be that ODBC itself or the Oracle ODBC driver has a 1024 character limit.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jul 2017 13:47:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Truncated-Characters-when-extracting/m-p/372999#M89214</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-07-04T13:47:46Z</dc:date>
    </item>
    <item>
      <title>Re: Truncated Characters when extracting</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Truncated-Characters-when-extracting/m-p/373010#M89222</link>
      <description>&lt;P&gt;this perfectly worked! thank you so much!!!&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/16719"&gt;@Miracle&lt;/a&gt; wrote:&lt;BR /&gt;&lt;P&gt;try&amp;nbsp;dbmax_text= in your proc sql&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.lexjansen.com/pharmasug/2006/TechnicalTechniques/TT15.pdf" target="_self"&gt;Using SAS® to Manage and Report Long Text Fields in a Clinical DBMS &lt;/A&gt;&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jul 2017 14:14:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Truncated-Characters-when-extracting/m-p/373010#M89222</guid>
      <dc:creator>AJDELACRUZ0220</dc:creator>
      <dc:date>2017-07-04T14:14:36Z</dc:date>
    </item>
  </channel>
</rss>

