<?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: SAS/Access Hadoop String Columns - Field Length Options in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/SAS-Access-Hadoop-String-Columns-Field-Length-Options/m-p/215166#M5181</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the info! Given the software we use, I'd say we went straight to the source for good advice! I've passed along the SASFMT details to our IT department and we're working on getting some test data set up so we can play around a bit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the interim, I've tried to use the DBMAX_TEXT syntax in my libname reference as well as my explicit pass-thru but didn't have any luck. Here's the syntax I used:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-style: inherit; font-size: 10.6666679382324px; font-family: inherit; font-weight: inherit;"&gt;&lt;EM&gt;LIBNAME IMP SASIOIMP SERVER="server" PORT=21050&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-style: inherit; font-size: 10.6666679382324px; font-family: inherit; font-weight: inherit;"&gt;&lt;EM&gt;USER=&amp;amp;HAD_USER PASSWORD=&amp;amp;HAD_PW DATABASE=DEV_SL DBMAX_TEXT=200;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-style: inherit; font-size: 10.6666679382324px; font-family: inherit; font-weight: inherit;"&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;EM&gt;PROC SQL;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;EM&gt;CONNECT TO SASIOIMP (DATABASE=DEV_SL USER=&amp;amp;HAD_USER PASSWORD="&amp;amp;HAD_PW" SERVER="server" SQL_FUNCTIONS=ALL&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;EM&gt;&amp;nbsp; DBMAX_TEXT=200);&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;EM&gt;CREATE TABLE ORDER_HDR_EXP_2 AS&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;EM&gt;&amp;nbsp; SELECT * FROM CONNECTION TO SASIOIMP&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;EM&gt;(SELECT FIELD_Z&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;EM&gt; FROM VIEW_A);&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;EM&gt;QUIT;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You had mentioned SASFMT only works on implicit pass-thru queries and not with explicit pass-thru?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 04 Aug 2015 15:00:16 GMT</pubDate>
    <dc:creator>LongDrive3Putt</dc:creator>
    <dc:date>2015-08-04T15:00:16Z</dc:date>
    <item>
      <title>SAS/Access Hadoop String Columns - Field Length Options</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/SAS-Access-Hadoop-String-Columns-Field-Length-Options/m-p/215164#M5179</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Greetings! First time caller, long time listener. Was hoping you all could help me with some field length issues we're having and, as a follow on, help determine why certain table properties won't pass on implcit SQL but do on explicit SQL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My company uses Cloudera/Impala (ODBC version 2.5.29, ImpalaD 2.1.3-cdh5.3) to access Hadoop via SAS/ACCESS. We're currently running SAS 9.4 and have the STAT 13.2 and ETS 13.2 analytical packs. Consider a Hadoop View (VIEW_A) that has a field (FIELD_Z) defined as VARCHAR(10).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I run the following code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;EM&gt;LIBNAME IMP SASIOIMP SERVER="server" PORT=21050 &lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;EM&gt;USER=&amp;amp;HAD_USER PASSWORD=&amp;amp;HAD_PW DATABASE=DEV_SL;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;EM&gt;68&amp;nbsp;&amp;nbsp; PROC SQL;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;EM&gt;69&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CREATE TABLE ORDER_HDR_IMP_1 AS&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;EM&gt;70&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SELECT&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;EM&gt;71&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FIELD_Z&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;EM&gt;72&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FROM VIEW_A;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;EM&gt;73&amp;nbsp;&amp;nbsp; QUIT;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;EM&gt;NOTE: Compressing data set WORK.ORDER_HDR_IMP_1 decreased size by 99.78 percent.&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Compressed is 47 pages; un-compressed would require 21144 pages.&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;EM&gt;NOTE: Table WORK.ORDER_HDR_IMP_1 created, with 148002 rows and 1 columns.&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;EM&gt;89&amp;nbsp;&amp;nbsp; QUIT;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;EM&gt;NOTE: PROCEDURE SQL used (Total process time):&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; real time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 11.09 seconds&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cpu time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 8.48 seconds&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I note the field length of FIELD_Z, it is $32767...even though the view is defined as VARCHAR(10).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, I try the explicit SQL method:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;EM&gt;90&amp;nbsp;&amp;nbsp; PROC SQL;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;EM&gt;91&amp;nbsp;&amp;nbsp; CONNECT TO SASIOIMP (DATABASE=DEV_SL USER=&amp;amp;HAD_USER PASSWORD="&amp;amp;HAD_PW"&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;EM&gt;91 ! SERVER="server" SQL_FUNCTIONS=ALL);&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;EM&gt;92&amp;nbsp;&amp;nbsp; CREATE TABLE ORDER_HDR_EXP_2 AS&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;EM&gt;93&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SELECT * FROM CONNECTION TO SASIOIMP&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;EM&gt;94&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (SELECT FIELD_Z&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;EM&gt;95&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FROM VIEW_A);&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;EM&gt;96&amp;nbsp;&amp;nbsp; QUIT;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;EM&gt;NOTE: Compression was disabled for data set WORK.ORDER_HDR_EXP_2 because compression overhead would&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; increase the size of the data set.&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;EM&gt;IMPALA_8: Executed: on connection 2&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;EM&gt;Prepared statement IMPALA_7&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;EM&gt;NOTE: Table WORK.ORDER_HDR_EXP_2 created, with 148002 rows and 1 columns.&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;EM&gt;114&amp;nbsp; QUIT;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;EM&gt;NOTE: PROCEDURE SQL used (Total process time):&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; real time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1.29 seconds&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cpu time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.24 seconds&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The above results in a proper length of FIELD_Z of $10. Strange.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can note that the query returned the exact same records, but ran in 90% less time and took up 99.99% less space (before compression). We are currently not using the SASFMT metadata option as our IT department is a little.....hesitant.....to add this metadata tag, and I have not be able to find much on the web regarding its usage. Our Hadoop install is pretty new (traditionally a DB2 shop, Teradata now as well), so we're still working out the kinks. Right now, we've got a handful of tables with the largest having about 17M records and 25 columns, relatively small compared to our DB2/Teradata tables. We use ETL to load the Hadoop tables and SAS to perform analytics. However, pulling data from these tables is extremely inefficient due to these field length issues. So a few questions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1. Why the differences in dataset field length between Implicit SQL and Explicit SQL?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2. Anybody currently using the SASFMT metadata option? If so, any concerns/issues? Is it meeting your requirements?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;3. For those not using SASFMT, how do you get around the $32767 default length for STRING fields?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance, appreciate the help! Feel free to ask for any additional information and I'm happy to provide whatever I can.&lt;/P&gt;&lt;P&gt;Matt- &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jul 2015 20:11:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/SAS-Access-Hadoop-String-Columns-Field-Length-Options/m-p/215164#M5179</guid>
      <dc:creator>LongDrive3Putt</dc:creator>
      <dc:date>2015-07-31T20:11:32Z</dc:date>
    </item>
    <item>
      <title>Re: SAS/Access Hadoop String Columns - Field Length Options</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/SAS-Access-Hadoop-String-Columns-Field-Length-Options/m-p/215165#M5180</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Extended table attributes (SASFMT) are only applied to implicit pass-thru. If the table is defined with VARCHAR() SAS should (depending on the version you are running) honor it. There are some Hive weirdnesses with views. Plus, SAS has optimization issues with them. I would try creating a HIVE EXTERNAL table pointing to the underlying file and see if that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are other strategies for avoiding the "32k string thing" (my catchy name for the "problem"). The DBMAX_TEXT= LIBNAME statement option is one way to do this. It limits all string lengths to the value specified. It applies to all strings encountered in the SAS library. It is not a great solution, but it does help, a lot. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check out the slides I created for an SGF 2015 workshop, "An Insider's Guide to SAS/ACCESS to Hadoop." They are available on the SAS Communities site. &lt;A _jive_internal="true" href="https://communities.sas.com/docs/DOC-11052"&gt;Click here to get the slides.&lt;/A&gt;&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Aug 2015 16:05:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/SAS-Access-Hadoop-String-Columns-Field-Length-Options/m-p/215165#M5180</guid>
      <dc:creator>JBailey</dc:creator>
      <dc:date>2015-08-03T16:05:16Z</dc:date>
    </item>
    <item>
      <title>Re: SAS/Access Hadoop String Columns - Field Length Options</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/SAS-Access-Hadoop-String-Columns-Field-Length-Options/m-p/215166#M5181</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the info! Given the software we use, I'd say we went straight to the source for good advice! I've passed along the SASFMT details to our IT department and we're working on getting some test data set up so we can play around a bit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the interim, I've tried to use the DBMAX_TEXT syntax in my libname reference as well as my explicit pass-thru but didn't have any luck. Here's the syntax I used:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-style: inherit; font-size: 10.6666679382324px; font-family: inherit; font-weight: inherit;"&gt;&lt;EM&gt;LIBNAME IMP SASIOIMP SERVER="server" PORT=21050&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-style: inherit; font-size: 10.6666679382324px; font-family: inherit; font-weight: inherit;"&gt;&lt;EM&gt;USER=&amp;amp;HAD_USER PASSWORD=&amp;amp;HAD_PW DATABASE=DEV_SL DBMAX_TEXT=200;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-style: inherit; font-size: 10.6666679382324px; font-family: inherit; font-weight: inherit;"&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;EM&gt;PROC SQL;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;EM&gt;CONNECT TO SASIOIMP (DATABASE=DEV_SL USER=&amp;amp;HAD_USER PASSWORD="&amp;amp;HAD_PW" SERVER="server" SQL_FUNCTIONS=ALL&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;EM&gt;&amp;nbsp; DBMAX_TEXT=200);&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;EM&gt;CREATE TABLE ORDER_HDR_EXP_2 AS&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;EM&gt;&amp;nbsp; SELECT * FROM CONNECTION TO SASIOIMP&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;EM&gt;(SELECT FIELD_Z&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;EM&gt; FROM VIEW_A);&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;EM&gt;QUIT;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You had mentioned SASFMT only works on implicit pass-thru queries and not with explicit pass-thru?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Aug 2015 15:00:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/SAS-Access-Hadoop-String-Columns-Field-Length-Options/m-p/215166#M5181</guid>
      <dc:creator>LongDrive3Putt</dc:creator>
      <dc:date>2015-08-04T15:00:16Z</dc:date>
    </item>
    <item>
      <title>Re: SAS/Access Hadoop String Columns - Field Length Options</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/SAS-Access-Hadoop-String-Columns-Field-Length-Options/m-p/215167#M5182</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I assumed (Whoops) that you were using ACCESS to Hadoop. You can use IMPALA for the database name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 13px; background-color: #ffffff; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;You had mentioned SASFMT only works on implicit pass-thru queries and not with explicit pass-thru?&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;This is correct. Extended table attributes only work for implict pass-thru. This is only for ACCESS to Hadoop, not Impala. They are different.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is a &lt;A href="http://support.sas.com/kb/53/835.html"&gt;SAS Note for SAS 9.4M2&lt;/A&gt;. It applies to SAS 9.4M3, too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DBMAX_TEXT= will work with Implicit Passthru (when you use a LIBNAME statement). ACCESS to Impala is an ODBC-based SAS/ACCESS engine. This means that you can (I stole this from the SAS Note mentioned above)...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding: 5px 0; font-family: Arial, Helvetica, Verdana, sans-serif; color: #333333; font-size: small;"&gt;&lt;EM&gt;To limit string length under Windows, set the drivers option &lt;SPAN style="font-family: monospace;"&gt;&lt;STRONG&gt;String Column Length&lt;/STRONG&gt;&lt;/SPAN&gt; in the Advanced Options of the ODBC data source.&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding: 5px 0; font-family: Arial, Helvetica, Verdana, sans-serif; color: #333333; font-size: small;"&gt;&lt;EM&gt;On a UNIX system, set the DSN (data source name) property &lt;SPAN style="font-family: monospace;"&gt;&lt;STRONG&gt;StringColumnLength&lt;/STRONG&gt;&lt;/SPAN&gt;.&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding: 5px 0; font-family: Arial, Helvetica, Verdana, sans-serif; color: #333333; font-size: small;"&gt;Do you think it would help if I wrote a small note on this and added it to the communities site as a note/paper/whatever it is called?&lt;/P&gt;&lt;P style="padding: 5px 0; font-family: Arial, Helvetica, Verdana, sans-serif; color: #333333; font-size: small;"&gt;Let me know if you need more help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Aug 2015 15:19:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/SAS-Access-Hadoop-String-Columns-Field-Length-Options/m-p/215167#M5182</guid>
      <dc:creator>JBailey</dc:creator>
      <dc:date>2015-08-04T15:19:58Z</dc:date>
    </item>
    <item>
      <title>Re: SAS/Access Hadoop String Columns - Field Length Options</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/SAS-Access-Hadoop-String-Columns-Field-Length-Options/m-p/215168#M5183</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial',sans-serif;"&gt;Here’s where you can find related topics in the SAS/ACCESS documentation.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL style="list-style-type: disc;"&gt;&lt;LI&gt;&lt;STRONG style="color: blue; font-family: 'Arial',sans-serif;"&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/acreldb/68028/HTML/default/p1rj6miqsmhercn17lz0xatfqd4l.htm#p0x5wfmm7a3pfyn1owpgwl8f1896"&gt;&lt;SPAN style="color: blue;"&gt;Address Issues When Converting Data from Hive to SAS for Pass-Through SQL&lt;/SPAN&gt;&lt;/A&gt;&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-family: 'Arial',sans-serif; color: blue;"&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/acreldb/68028/HTML/default/viewer.htm#p0rkug1n9ub7b0n132xjxknz1qvv.htm"&gt;&lt;SPAN style="color: blue;"&gt;SAS/ACCESS Interface to Impala&lt;/SPAN&gt;&lt;/A&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-family: 'Arial',sans-serif; color: blue;"&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/acreldb/68028/HTML/default/n0l3rcy5ljom1ln1o34eq22rzedg.htm"&gt;&lt;SPAN style="color: blue;"&gt;SQL Pass-Through Facility Specifics for Impala&lt;/SPAN&gt;&lt;/A&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-family: 'Arial',sans-serif; color: blue;"&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/acreldb/68028/HTML/default/p1rj6miqsmhercn17lz0xatfqd4l.htm#p01o1fa51sa42on14iu7o358vlho"&gt;&lt;SPAN style="color: blue;"&gt;Highlighting New Hive .12 Data Types&lt;/SPAN&gt;&lt;/A&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-family: 'Arial',sans-serif; color: blue;"&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/acreldb/68028/HTML/default/p1rj6miqsmhercn17lz0xatfqd4l.htm#n06yf3l1onlu4un13t9xogaufxo9"&gt;&lt;SPAN style="color: blue;"&gt;Issues When Converting Data from Hive to SAS&lt;/SPAN&gt;&lt;/A&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-family: 'Arial',sans-serif; color: blue;"&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/acreldb/68028/HTML/default/p1rj6miqsmhercn17lz0xatfqd4l.htm#n03xbbi9c61o5ln15u3hkxzjo2jt"&gt;&lt;SPAN style="color: blue;"&gt;Address Issues When Converting Data from Hive to SAS with Table Properties&lt;/SPAN&gt;&lt;/A&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-family: 'Arial',sans-serif; color: blue;"&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/acreldb/68028/HTML/default/p1rj6miqsmhercn17lz0xatfqd4l.htm#n1cu4c5f37pm88n1sub4gms49y7y"&gt;&lt;SPAN style="color: blue;"&gt;Alternatives to Table Properties for Issues with Data Conversion from Hive to SAS&lt;/SPAN&gt;&lt;/A&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-family: 'Arial',sans-serif; color: blue;"&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/acreldb/68028/HTML/default/viewer.htm#n1aqglg4ftdj04n1eyvh2l3367ql.htm"&gt;&lt;SPAN style="color: blue;"&gt;DBMAX_TEXT= LIBNAME Option&lt;/SPAN&gt;&lt;/A&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-family: 'Arial',sans-serif; color: blue;"&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/acreldb/68028/HTML/default/viewer.htm#p14o73fqwbby7xn1iqvjbdiixuyj.htm"&gt;&lt;SPAN style="color: blue;"&gt;DBMAX_TEXT= Data Set Option&lt;/SPAN&gt;&lt;/A&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Aug 2015 16:21:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/SAS-Access-Hadoop-String-Columns-Field-Length-Options/m-p/215168#M5183</guid>
      <dc:creator>KatT_sas</dc:creator>
      <dc:date>2015-08-27T16:21:02Z</dc:date>
    </item>
    <item>
      <title>Re: SAS/Access Hadoop String Columns - Field Length Options</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/SAS-Access-Hadoop-String-Columns-Field-Length-Options/m-p/341734#M10177</link>
      <description>&lt;P&gt;Can you please share the sample code with DBMS_TXT= option in libname and dataset name? I tried but length comes as 32767 even with DBMS_TXT= option.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank You!&lt;/P&gt;&lt;P&gt;Mathur&lt;/P&gt;</description>
      <pubDate>Thu, 16 Mar 2017 19:24:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/SAS-Access-Hadoop-String-Columns-Field-Length-Options/m-p/341734#M10177</guid>
      <dc:creator>Matt</dc:creator>
      <dc:date>2017-03-16T19:24:52Z</dc:date>
    </item>
    <item>
      <title>Re: SAS/Access Hadoop String Columns - Field Length Options</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/SAS-Access-Hadoop-String-Columns-Field-Length-Options/m-p/341779#M10180</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/55076"&gt;@Matt&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The option is&amp;nbsp;DBMAX_TEXT=, but that won't help you. It appears that there is a defect lurking here. I tried this code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/* This does not work!!! */
libname myimp impala server=domo7  user=myuser pw=mypasswd dbmax_text=255;

proc sql;
   connect using myimp;
   execute (create table jefftest(x string)) by myimp;
   execute (insert into jefftest values('a')) by myimp;
quit;

data work.jefftest;
   set myimp.jefftest;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Unfortunately, the above code does not work. Frustrating, but not catastrophic. I am going to enter a defect on this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can tell the ODBC driver to limit the length of the strings. Here is a SAS note that discusses it:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/kb/53/835.html" target="_self"&gt;http://support.sas.com/kb/53/835.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This code does work:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/* notice I am using a DSN */
/* I limited the string length using it */

libname myimp impala dsn=domo7dsn  user=myuser pw=mypasswd ;

proc sql;
   connect using myimp;
   execute (create table jefftest(x string)) by myimp;
   execute (insert into jefftest values('a')) by myimp;
quit;

data work.jefftest;
   set myimp.jefftest;
run;

&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is what I did in the driver setup (Advanced Options tab):&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dbmax_text.jpg" style="width: 469px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/7795iAF5D0F6EAB12979A/image-size/large?v=v2&amp;amp;px=999" role="button" title="dbmax_text.jpg" alt="dbmax_text.jpg" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;If you are using a recent version of Impala you can use the VARCHAR data type instead of string.&lt;/STRONG&gt; It doesn't have the 32K string problem.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This may help others who stumble upon this thread -&amp;nbsp;take a look at the course materials from the SGF SAS and Hadoop workshop. They are not specific to Impala, it is explained there:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/Jeff-Bailey/SGF2016_SAS3880_Insiders_Guide_Hadoop_HOW" target="_self"&gt;https://github.com/Jeff-Bailey/SGF2016_SAS3880_Insiders_Guide_Hadoop_HOW&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Althought the DBMAX_TEXT= discussion turns-out to be a huge lie, this SGF 2016 paper may help with Impala:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://sasglobalforum2016.lanyonevents.com/connect/sessionDetail.ww?SESSION_ID=3960" target="_self"&gt;https://sasglobalforum2016.lanyonevents.com/connect/sessionDetail.ww?SESSION_ID=3960&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The workshop materials explain the 32k String Thing (trademark pending &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt; in great detail. It is for SAS/ACCESS Interface to Hadoop but the concepts are the same. It does not include the DBMAX_TEXT= (which appears to not work) option.&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Update:&lt;/STRONG&gt; I am being told that this option is documented to only work with blob-type data, and Impala doesn't technically support any blob/clob, so it doesn't apply for Impala.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am not buying into this, but it may be legit. In the meantime, changing the configuration of the ODBC DSN does work. So that is a possiblity.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here are the options that will work (In order from best to worst - in my opinion):&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Use&amp;nbsp;VARCHAR data type instead of STRING&lt;/LI&gt;
&lt;LI&gt;Cast STRING columns to something else (this is a lot of work and could be seen as the worst solution)&lt;/LI&gt;
&lt;LI&gt;Limit the length of strings via the ODBC driver (see above)&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;Adding extended table attributes to the table may help. I will have to test this.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Oct 2017 15:27:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/SAS-Access-Hadoop-String-Columns-Field-Length-Options/m-p/341779#M10180</guid>
      <dc:creator>JBailey</dc:creator>
      <dc:date>2017-10-12T15:27:13Z</dc:date>
    </item>
    <item>
      <title>Re: SAS/Access Hadoop String Columns - Field Length Options</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/SAS-Access-Hadoop-String-Columns-Field-Length-Options/m-p/341837#M10182</link>
      <description>&lt;P&gt;Maybe this &lt;A href="https://communities.sas.com/t5/SASware-Ballot-Ideas/Enable-disabling-warnings-in-log-when-a-Hadoop-string-is-long/idc-p/341835#M2480" target="_self"&gt;thread &lt;/A&gt;will help?&lt;/P&gt;</description>
      <pubDate>Fri, 17 Mar 2017 02:22:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/SAS-Access-Hadoop-String-Columns-Field-Length-Options/m-p/341837#M10182</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2017-03-17T02:22:54Z</dc:date>
    </item>
    <item>
      <title>Re: SAS/Access Hadoop String Columns - Field Length Options</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/SAS-Access-Hadoop-String-Columns-Field-Length-Options/m-p/342050#M10192</link>
      <description>&lt;P&gt;Thank You JBailey for the suggestions and sample code. I have issues connecting to IMPALA with server name as well it works fine with DSN.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Based on what I found from&amp;nbsp;&lt;A href="http://support.sas.com/documentation/cdl/en/acreldb/69580/HTML/default/viewer.htm#n0usrxwbz3hw7qn1nqb2zwp1ho84.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/acreldb/69580/HTML/default/viewer.htm#n0usrxwbz3hw7qn1nqb2zwp1ho84.htm&lt;/A&gt; page, it seems like with varchar the default SAS format would be&amp;nbsp;&lt;SPAN&gt;$65355 so it actually going to take more space and time to process than string data type. Please correct me if I mis interpreted.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Data Conversion from Impala to SAS&lt;/P&gt;&lt;DIV class="xis-topicContent"&gt;&lt;DIV class="xis-paragraph"&gt;This table shows the default SAS formats that are assigned to SAS variables that are created when &lt;SPAN class="xis-nobr"&gt;SAS/ACCESS&lt;/SPAN&gt; reads Impala table columns.&lt;/DIV&gt;&lt;DIV class="xis-note"&gt;&lt;SPAN class="xis-noteGenText"&gt;Note: &lt;/SPAN&gt;In the third maintenance release for SAS 9.4, support for CHAR and VARCHAR data types was added.&lt;/DIV&gt;&lt;DIV class="xis-table"&gt;Impala to SAS: Default SAS Formats for Impala Data Types&lt;DIV class="xis-paraTableFirst"&gt;Impala Data Type&lt;/DIV&gt;&lt;DIV class="xis-paraTableFirst"&gt;SAS Data Type&lt;/DIV&gt;&lt;DIV class="xis-paraTableFirst"&gt;Default SAS Format&lt;/DIV&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;DIV class="xis-paraTableFirst"&gt;CHAR&lt;/DIV&gt;&lt;/TD&gt;&lt;TD&gt;&lt;DIV class="xis-paraTableFirst"&gt;character&lt;/DIV&gt;&lt;/TD&gt;&lt;TD&gt;&lt;DIV class="xis-paraTableFirst"&gt;$255.&lt;/DIV&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;DIV class="xis-paraTableFirst"&gt;STRING&lt;/DIV&gt;&lt;/TD&gt;&lt;TD&gt;&lt;DIV class="xis-paraTableFirst"&gt;$32767.&lt;/DIV&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;DIV class="xis-paraTableFirst"&gt;VARCHAR&lt;/DIV&gt;&lt;/TD&gt;&lt;TD&gt;&lt;DIV class="xis-paraTableFirst"&gt;$65355&lt;/DIV&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;DIV class="xis-paraTableFirst"&gt;BOOLEAN&lt;/DIV&gt;&lt;/TD&gt;&lt;TD&gt;&lt;DIV class="xis-paraTableFirst"&gt;numeric&lt;/DIV&gt;&lt;/TD&gt;&lt;TD&gt;&lt;DIV class="xis-paraTableFirst"&gt;1.&lt;/DIV&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;DIV class="xis-paraTableFirst"&gt;BIGINT&lt;/DIV&gt;&lt;/TD&gt;&lt;TD&gt;&lt;DIV class="xis-paraTableFirst"&gt;20.&lt;/DIV&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;DIV class="xis-paraTableFirst"&gt;DOUBLE&lt;/DIV&gt;&lt;/TD&gt;&lt;TD&gt;&lt;DIV class="xis-paraTableFirst"&gt;none&lt;/DIV&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;DIV class="xis-paraTableFirst"&gt;FLOAT&lt;/DIV&gt;&lt;/TD&gt;&lt;TD&gt;&lt;DIV class="xis-paraTableFirst"&gt;none&lt;/DIV&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;DIV class="xis-paraTableFirst"&gt;INT&lt;/DIV&gt;&lt;/TD&gt;&lt;TD&gt;&lt;DIV class="xis-paraTableFirst"&gt;11.&lt;/DIV&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;DIV class="xis-paraTableFirst"&gt;SMALLINT&lt;/DIV&gt;&lt;/TD&gt;&lt;TD&gt;&lt;DIV class="xis-paraTableFirst"&gt;6.&lt;/DIV&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;DIV class="xis-paraTableFirst"&gt;TINYINT&lt;/DIV&gt;&lt;/TD&gt;&lt;TD&gt;&lt;DIV class="xis-paraTableFirst"&gt;4.&lt;/DIV&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was informed about CAST function from SAS TS but as you said it's a very time consuming specially when there are multiple tables and 100's of columns in each table that needs to be modified.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I looked at the SAS notes which talks about &lt;SPAN&gt;limit the length of the strings in ODBC driver but the issue is it is going to limit the length to one that user mention in StringColumnLength= within odbc.ini for each variable regardless the actual value of particular variable. Let's say I define length in StringColumnLength=250 in odbc.ini then all string fields will have 250 length and the fields which has data more than 250 character bytes will get truncated. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&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;</description>
      <pubDate>Fri, 17 Mar 2017 17:01:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/SAS-Access-Hadoop-String-Columns-Field-Length-Options/m-p/342050#M10192</guid>
      <dc:creator>Matt</dc:creator>
      <dc:date>2017-03-17T17:01:27Z</dc:date>
    </item>
    <item>
      <title>Re: SAS/Access Hadoop String Columns - Field Length Options</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/SAS-Access-Hadoop-String-Columns-Field-Length-Options/m-p/342094#M10195</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/55076"&gt;@Matt&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;CHAR and VARCHAR supported were added in SAS 9.4M3. I used&amp;nbsp;SAS 9.4M4 for the following test. I don't see a problem with VARCHAR. It works great!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is all the code.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname myimp impala server=impserv  user=myuser pw=mypasswd;

proc sql;
   connect using myimp;
   execute (create table jefftest(x string)) by myimp;
   execute (insert into jefftest values('a')) by myimp;
quit;

data work.jefftest;
   set myimp.jefftest;
run;

/* varchar(10) */
proc sql;
   connect using myimp;
   execute (create table jefftest_vc(x varchar(10))) by myimp;
   execute (insert into jefftest_vc values('1234567890')) by myimp;
quit;

data work.jefftest_vc;
   set myimp.jefftest_vc;
run;

/* varchar with no length specified */
/* Results in a length of 1 */
proc sql;
   connect using myimp;
   execute (create table jefftest_vc2(x varchar)) by myimp;
   execute (insert into jefftest_vc2 values('1234567890')) by myimp;
quit;

data work.jefftest_vc2;
   set myimp.jefftest_vc2;
run;


&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;varchar(10)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/7815i254C7329D2554751/image-size/original?v=1.0&amp;amp;px=-1" border="0" alt="impala_01.jpg" title="impala_01.jpg" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;varchar - with no length specified (I was seeing if it would produce the 65k length string).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/7813i27E55BEB1DF57189/image-size/original?v=1.0&amp;amp;px=-1" border="0" alt="impala_02.jpg" title="impala_02.jpg" /&gt;&lt;/P&gt;
&lt;P&gt;Best wishes,&lt;/P&gt;
&lt;P&gt;Jeff&lt;/P&gt;</description>
      <pubDate>Fri, 17 Mar 2017 18:07:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/SAS-Access-Hadoop-String-Columns-Field-Length-Options/m-p/342094#M10195</guid>
      <dc:creator>JBailey</dc:creator>
      <dc:date>2017-03-17T18:07:31Z</dc:date>
    </item>
    <item>
      <title>Re: SAS/Access Hadoop String Columns - Field Length Options</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/SAS-Access-Hadoop-String-Columns-Field-Length-Options/m-p/342128#M10196</link>
      <description>&lt;P&gt;Thank you Jeff for your prompt response with details. We are on M2 and planning to upgrade to M4 soon. Your code will help me once we are on M4.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you buy any chance know the root cause of the issues I am facing while trying to connect Impala with server= instead of DSN?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the libname and error message. Our impala cluster is kerberized and I do have valid ticket.I am getting same error with or without user name and password.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;libname myimp impala server='fqdn' user=test password='xxxxx' schema=default;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data myimp.test;&lt;BR /&gt;set sashelp.class;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/*libname myimp impala server='fqdn' user=test password=XXXXXXXXXXXXXXXXXX schema=default;&lt;BR /&gt;ERROR: CLI error trying to establish connection: [unixODBC][Cloudera][ImpalaODBC] (100) Error from the Impala Thrift API: No more data to read.&lt;BR /&gt;ERROR: Error in the LIBNAME statement.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Mar 2017 19:25:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/SAS-Access-Hadoop-String-Columns-Field-Length-Options/m-p/342128#M10196</guid>
      <dc:creator>Matt</dc:creator>
      <dc:date>2017-03-17T19:25:29Z</dc:date>
    </item>
    <item>
      <title>Re: SAS/Access Hadoop String Columns - Field Length Options</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/SAS-Access-Hadoop-String-Columns-Field-Length-Options/m-p/342133#M10197</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/55076"&gt;@Matt&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You are quite welcome. I am more than happy to help solve your problem.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think your DSN= vs SERVER= issue has to do with some configuration that is present in the odbc.ini file. I bet it is related to the Kerberos setup. There is something being handled for you in your DSN. If you want to resolve this you may want to give SAS Tech Support a call.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best wishes,&lt;BR /&gt;Jeff&lt;/P&gt;</description>
      <pubDate>Fri, 17 Mar 2017 19:40:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/SAS-Access-Hadoop-String-Columns-Field-Length-Options/m-p/342133#M10197</guid>
      <dc:creator>JBailey</dc:creator>
      <dc:date>2017-03-17T19:40:00Z</dc:date>
    </item>
    <item>
      <title>Re: SAS/Access Hadoop String Columns - Field Length Options</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/SAS-Access-Hadoop-String-Columns-Field-Length-Options/m-p/342141#M10198</link>
      <description>&lt;P&gt;Thank you Jeff. I was able to get hold of Peter at SAS TS. It looks like I don't have write access to Impala. I was under wrong impression it seems. I am going to reach out to our hadoop admins and take it from there.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Mar 2017 19:56:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/SAS-Access-Hadoop-String-Columns-Field-Length-Options/m-p/342141#M10198</guid>
      <dc:creator>Matt</dc:creator>
      <dc:date>2017-03-17T19:56:40Z</dc:date>
    </item>
    <item>
      <title>Re: SAS/Access Hadoop String Columns - Field Length Options</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/SAS-Access-Hadoop-String-Columns-Field-Length-Options/m-p/342145#M10199</link>
      <description>&lt;P&gt;Hi &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/55076"&gt;@Matt&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My pleasure!&lt;/P&gt;</description>
      <pubDate>Fri, 17 Mar 2017 20:09:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/SAS-Access-Hadoop-String-Columns-Field-Length-Options/m-p/342145#M10199</guid>
      <dc:creator>JBailey</dc:creator>
      <dc:date>2017-03-17T20:09:48Z</dc:date>
    </item>
    <item>
      <title>Re: SAS/Access Hadoop String Columns - Field Length Options</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/SAS-Access-Hadoop-String-Columns-Field-Length-Options/m-p/342768#M10211</link>
      <description>&lt;P&gt;Jeff,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am back to bother you. It's getting more complicated now it seems.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to write my output SAS dataset to Impala and it appears all character fields are being saved as string so while pulling data back to SAS all character fields come with 32767 length.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;DBMAX_TEXT and defining a length &lt;SPAN&gt;StringColumnLength= in odbc.ini is not going to work for me, due to the nature of the data.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This leaves me with only one option Alter Table property with SASFMT. Let me know if you know other better ways to handle the length issue while writing output to Impala.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Also, I read about SASFMT metadata option for Implicit sql. Can you please share some information how it can be used and where it can be used?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you so much for all your help.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Matt&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Mar 2017 21:08:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/SAS-Access-Hadoop-String-Columns-Field-Length-Options/m-p/342768#M10211</guid>
      <dc:creator>Matt</dc:creator>
      <dc:date>2017-03-20T21:08:23Z</dc:date>
    </item>
    <item>
      <title>Re: SAS/Access Hadoop String Columns - Field Length Options</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/SAS-Access-Hadoop-String-Columns-Field-Length-Options/m-p/342776#M10212</link>
      <description>&lt;P&gt;How come you get fields of type string? The fields created for me when exporting are of type varchar() and therefore have the correct length.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Running:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data IMPALA1.TEST; 
  A='1';
run;

proc sql;
  connect using IMPALA1;
  select * from connection to IMPALA1 ( describe extended `test` ); 
quit;

proc contents data=IMPALA1.TEST; 
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;shows that the variable has a length of 1:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &lt;/P&gt;
&lt;DIV class="branch"&gt;
&lt;DIV&gt;
&lt;DIV align="left"&gt;
&lt;TABLE class="table" summary="Procedure SQL: Query Results" frame="box" rules="all" cellpadding="5" cellspacing="0"&gt;
&lt;THEAD&gt;
&lt;TR&gt;
&lt;TH class="l b header" scope="col"&gt;name&lt;/TH&gt;
&lt;TH class="l b header" scope="col"&gt;type&lt;/TH&gt;
&lt;TH class="l b header" scope="col"&gt;comment&lt;/TH&gt;
&lt;/TR&gt;
&lt;/THEAD&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD class="l data"&gt;# col_name&lt;/TD&gt;
&lt;TD class="l data"&gt;data_type&lt;/TD&gt;
&lt;TD class="l data"&gt;comment&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD class="l data"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD class="l data"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD class="l data"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD class="l data"&gt;a&lt;/TD&gt;
&lt;TD class="l data"&gt;varchar(1)&lt;/TD&gt;
&lt;TD class="l data"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD class="l data"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD class="l data"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD class="l data"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV class="branch"&gt;
&lt;DIV&gt;
&lt;DIV align="left"&gt;
&lt;TABLE class="table" summary="Procedure Contents: Variables" frame="box" rules="all" cellpadding="5" cellspacing="0"&gt;
&lt;THEAD&gt;
&lt;TR&gt;
&lt;TH class="c b header" colspan="7" scope="colgroup"&gt;Alphabetic List of Variables and Attributes&lt;/TH&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TH class="r b header" scope="col"&gt;#&lt;/TH&gt;
&lt;TH class="l b header" scope="col"&gt;Variable&lt;/TH&gt;
&lt;TH class="l b header" scope="col"&gt;Type&lt;/TH&gt;
&lt;TH class="r b header" scope="col"&gt;Len&lt;/TH&gt;
&lt;TH class="l b header" scope="col"&gt;Format&lt;/TH&gt;
&lt;TH class="l b header" scope="col"&gt;Informat&lt;/TH&gt;
&lt;TH class="l b header" scope="col"&gt;Label&lt;/TH&gt;
&lt;/TR&gt;
&lt;/THEAD&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TH class="r rowheader" scope="row"&gt;1&lt;/TH&gt;
&lt;TD class="l data"&gt;a&lt;/TD&gt;
&lt;TD class="l data"&gt;Char&lt;/TD&gt;
&lt;TD class="r data"&gt;1&lt;/TD&gt;
&lt;TD class="l data"&gt;$1.&lt;/TD&gt;
&lt;TD class="l data"&gt;$1.&lt;/TD&gt;
&lt;TD class="l data"&gt;a&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Mar 2017 22:23:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/SAS-Access-Hadoop-String-Columns-Field-Length-Options/m-p/342776#M10212</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2017-03-20T22:23:33Z</dc:date>
    </item>
    <item>
      <title>Re: SAS/Access Hadoop String Columns - Field Length Options</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/SAS-Access-Hadoop-String-Columns-Field-Length-Options/m-p/342976#M10213</link>
      <description>Chris, I am not sure why it creates a table with string data type. We are on SAS 9.4M2 and Impala version is 2.3.0+cdh5.5.2+0. and I believe varchar is supported from 9.4M3 and later, that could be reason why it writes all character data as string. Attached proc content output. Also, below syntax is not supported either. proc sql; connect using myimp; select * from connection to myimp ( describe extended 'length' ); quit; Here is the error RROR: CLI error trying to establish connection: [unixODBC][Driver Manager]Data source name not found, and no default driver specified NOTE: PROC SQL set option NOEXEC and will continue to check the syntax of statements. 25 select * from connection to myimp ( describe extended 'length2' ); ERROR: The MYIMP engine cannot be found. ERROR: A Connection to the myimp DBMS is not currently supported, or is not installed at your site.</description>
      <pubDate>Tue, 21 Mar 2017 15:50:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/SAS-Access-Hadoop-String-Columns-Field-Length-Options/m-p/342976#M10213</guid>
      <dc:creator>Matt</dc:creator>
      <dc:date>2017-03-21T15:50:20Z</dc:date>
    </item>
    <item>
      <title>Re: SAS/Access Hadoop String Columns - Field Length Options</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/SAS-Access-Hadoop-String-Columns-Field-Length-Options/m-p/343088#M10217</link>
      <description>&lt;P&gt;I am on 9.4 M3. That's probably the reason.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The syntax&lt;EM&gt; connect using&lt;/EM&gt; requires that a libname statement be run beforehand:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;libname IMP1 impala &amp;lt;&lt;EM&gt;connection parameters&lt;/EM&gt;&amp;gt;&amp;nbsp; ;&lt;/P&gt;
&lt;P&gt;proc sql;&lt;/P&gt;
&lt;P&gt;connect using IMP1 ;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Mar 2017 00:57:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/SAS-Access-Hadoop-String-Columns-Field-Length-Options/m-p/343088#M10217</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2017-03-22T00:57:14Z</dc:date>
    </item>
    <item>
      <title>Re: SAS/Access Hadoop String Columns - Field Length Options</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/SAS-Access-Hadoop-String-Columns-Field-Length-Options/m-p/343380#M10221</link>
      <description>&lt;P&gt;Right, I already have a libname on top of proc sql connect statement. I think the issue is I am not able to connect to Impala with server= option, it only works with DSN= option. I am in the process of troubleshooting the issue. If you know any steps to consider for resolution let me know.&amp;nbsp;&lt;/P&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;</description>
      <pubDate>Wed, 22 Mar 2017 16:27:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/SAS-Access-Hadoop-String-Columns-Field-Length-Options/m-p/343380#M10221</guid>
      <dc:creator>Matt</dc:creator>
      <dc:date>2017-03-22T16:27:08Z</dc:date>
    </item>
    <item>
      <title>Re: SAS/Access Hadoop String Columns - Field Length Options</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/SAS-Access-Hadoop-String-Columns-Field-Length-Options/m-p/343392#M10222</link>
      <description>&lt;P&gt;This is what I did to handle the lenght issue while writing a dataset/file to Impala from SAS, since we are on 9.4M2 so VARCHAR is not supported and seems like alter table properties with SASFMT is not supported either and this leaves me with only 2 option.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(1) Create a table in Impala and define a datatype and insert data to that table. The only caveate is that the source has to be in Impala and the source table has to have same length but in my case the source is an oracle table so when I write Oracle table to Impala all character fields gets string datatype so the lenght is 32767 and it won't let me insert data from this table to the table I created with create table statement because the datatype and length are different. So technically this won't work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I found the work around and this one works fine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(2) Write a sas datasetp, save result dataset to Impala. Then ran ALTER table statement on Impala table, this will assign appropriate length and datatype varchar that you used in alter table statement.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;LIBNAME myimp impala DSN=impala schema=sas_test;&lt;BR /&gt;data myimp.a;&lt;BR /&gt;set oracle_lib.oracle_source_table;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ALTER TABLE sas_test.a column_1 column_1 varchar(50);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You have to do this for all character columns.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Mar 2017 16:36:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/SAS-Access-Hadoop-String-Columns-Field-Length-Options/m-p/343392#M10222</guid>
      <dc:creator>Matt</dc:creator>
      <dc:date>2017-03-22T16:36:22Z</dc:date>
    </item>
  </channel>
</rss>

