<?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 32 character restriction for column names. in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SAS-32-character-restriction-for-column-names/m-p/236263#M43276</link>
    <description>&lt;P&gt;Thank you all so very much for the rapid responses.&amp;nbsp; Appreciate it.&lt;/P&gt;</description>
    <pubDate>Tue, 24 Nov 2015 19:54:07 GMT</pubDate>
    <dc:creator>Patriot1776</dc:creator>
    <dc:date>2015-11-24T19:54:07Z</dc:date>
    <item>
      <title>SAS 32 character restriction for column names.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-32-character-restriction-for-column-names/m-p/236248#M43272</link>
      <description>&lt;P&gt;SAS\Access sqlsvr connecting to Unix MS SQL database containing views with column names exceeding 32 characters in length. &amp;nbsp;My reading indicates that&amp;nbsp;SAS can overcome the&amp;nbsp;32 characters restriction by specifying in the LIBNAME statement the&amp;nbsp;PRESERVE_COL_NAMES option. &amp;nbsp;I've tried =YES as well as =NO and each results in ERROR 65-58: Name '. . . XYZ . . .' is too long for a SAS name in this context. &amp;nbsp;Any helpful tips to resolve is appreciated.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Nov 2015 19:06:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-32-character-restriction-for-column-names/m-p/236248#M43272</guid>
      <dc:creator>Patriot1776</dc:creator>
      <dc:date>2015-11-24T19:06:42Z</dc:date>
    </item>
    <item>
      <title>Re: SAS 32 character restriction for column names.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-32-character-restriction-for-column-names/m-p/236250#M43273</link>
      <description>You can use SQL Pass through to pull the information OR you can create a view of the tables with a name that's shorter than 32 chars.</description>
      <pubDate>Tue, 24 Nov 2015 19:17:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-32-character-restriction-for-column-names/m-p/236250#M43273</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-11-24T19:17:45Z</dc:date>
    </item>
    <item>
      <title>Re: SAS 32 character restriction for column names.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-32-character-restriction-for-column-names/m-p/236251#M43274</link>
      <description>&lt;P&gt;"This option applies only when you create a new table"&lt;/P&gt;
&lt;P&gt;This issue have discussed multiple time on the communities - pls do a search.&lt;/P&gt;
&lt;P&gt;In short, you probably need to use explicit SQL pass-thru, or having view created in the RDBMS which complies to SAS&amp;nbsp;naming limits.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Nov 2015 19:18:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-32-character-restriction-for-column-names/m-p/236251#M43274</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2015-11-24T19:18:53Z</dc:date>
    </item>
    <item>
      <title>Re: SAS 32 character restriction for column names.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-32-character-restriction-for-column-names/m-p/236252#M43275</link>
      <description>&lt;P&gt;You can't have SAS column names longer than 32 characters period.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The only way to reference a longer than 32 character column in SQL Server is by using SAQL PASSTHRU. SAS will truncate the column name to 32 chars when reading it into SAS.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
  connect to sqlservr (connection string);
  create table test as
  select * from connection to sqlservr
 (select extremely_long_column_name_more_than_32_chars_long
  from tablename
 );
quit;&lt;/CODE&gt;&amp;nbsp;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Nov 2015 19:26:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-32-character-restriction-for-column-names/m-p/236252#M43275</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2015-11-24T19:26:10Z</dc:date>
    </item>
    <item>
      <title>Re: SAS 32 character restriction for column names.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-32-character-restriction-for-column-names/m-p/236263#M43276</link>
      <description>&lt;P&gt;Thank you all so very much for the rapid responses.&amp;nbsp; Appreciate it.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Nov 2015 19:54:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-32-character-restriction-for-column-names/m-p/236263#M43276</guid>
      <dc:creator>Patriot1776</dc:creator>
      <dc:date>2015-11-24T19:54:07Z</dc:date>
    </item>
  </channel>
</rss>

