<?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: Deal with DBMS column names over 32 characters on SAS in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Deal-with-DBMS-column-names-over-32-characters-on-SAS/m-p/834989#M330062</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You need to reduce to 32 chars or less.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is how I do it using PROC FEDSQL :&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/* Column name Draft_10_DieLifeForecast_Diameter         */
/* has 33 positions and is residing in an INTELDWD table */
/* INTELDWD is an AZURE SYNAPSE datalake                 */

proc FEDSQL sessref=manuSESSION;
create table CASUSER.test_table as (
  select Draft_10_DieLifeForecast_Diameter as test1
  from INTELDWD.C_Machine_Data_Temp) ;
QUIT;
/* end of program */&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Cheers,&lt;/P&gt;
&lt;P&gt;Koen&lt;/P&gt;</description>
    <pubDate>Fri, 23 Sep 2022 23:56:19 GMT</pubDate>
    <dc:creator>sbxkoenk</dc:creator>
    <dc:date>2022-09-23T23:56:19Z</dc:date>
    <item>
      <title>Deal with DBMS column names over 32 characters on SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Deal-with-DBMS-column-names-over-32-characters-on-SAS/m-p/834862#M330025</link>
      <description>Hi everybody,&lt;BR /&gt;&lt;BR /&gt;In my company, we manage hadoop datalake and oracle datawarehouse with limit of column name over 128 characters. Also, we have production tables with more than 40 characters on column names..&lt;BR /&gt;&lt;BR /&gt;I want suggestions about how to deal these size of column names on SAS 9.4 and SAS Viya without cutting the name.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Claudio</description>
      <pubDate>Fri, 23 Sep 2022 15:36:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Deal-with-DBMS-column-names-over-32-characters-on-SAS/m-p/834862#M330025</guid>
      <dc:creator>claudiodejesusa</dc:creator>
      <dc:date>2022-09-23T15:36:04Z</dc:date>
    </item>
    <item>
      <title>Re: Deal with DBMS column names over 32 characters on SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Deal-with-DBMS-column-names-over-32-characters-on-SAS/m-p/834873#M330030</link>
      <description>&lt;P&gt;For use in SAS, column (and table) names MUST be reduced to 32 characters, this is a hard limit in SAS. Create views in the DB's to achieve this.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Sep 2022 16:23:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Deal-with-DBMS-column-names-over-32-characters-on-SAS/m-p/834873#M330030</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-09-23T16:23:19Z</dc:date>
    </item>
    <item>
      <title>Re: Deal with DBMS column names over 32 characters on SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Deal-with-DBMS-column-names-over-32-characters-on-SAS/m-p/834987#M330061</link>
      <description>&lt;P&gt;A search of the SAS Communities will reveal a lot of posts on this topic. This one is probably the most useful:&amp;nbsp;&lt;A href="https://communities.sas.com/t5/SAS-Data-Management/Dealing-with-32-character-restrictions/m-p/100033#M1111" target="_blank"&gt;https://communities.sas.com/t5/SAS-Data-Management/Dealing-with-32-character-restrictions/m-p/100033#M1111&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Apart from &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562"&gt;@Kurt_Bremser&lt;/a&gt; 's workaround, you can use SQL Passthru to reference and query DBMS tables with names or columns greater than 32 characters. SAS has previously committed to increasing SAS table and column lengths to 128 characters but that was for a SAS release that is no longer happening - 9.5. I have not heard if this enhancement is on the SAS Viya 4 roadmap. If this is a major issue for you I suggest you pass that on to your SAS account manager. The more users who push for this enhancement the more likely it will happen.&amp;nbsp; &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Sep 2022 23:12:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Deal-with-DBMS-column-names-over-32-characters-on-SAS/m-p/834987#M330061</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2022-09-23T23:12:13Z</dc:date>
    </item>
    <item>
      <title>Re: Deal with DBMS column names over 32 characters on SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Deal-with-DBMS-column-names-over-32-characters-on-SAS/m-p/834989#M330062</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You need to reduce to 32 chars or less.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is how I do it using PROC FEDSQL :&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/* Column name Draft_10_DieLifeForecast_Diameter         */
/* has 33 positions and is residing in an INTELDWD table */
/* INTELDWD is an AZURE SYNAPSE datalake                 */

proc FEDSQL sessref=manuSESSION;
create table CASUSER.test_table as (
  select Draft_10_DieLifeForecast_Diameter as test1
  from INTELDWD.C_Machine_Data_Temp) ;
QUIT;
/* end of program */&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Cheers,&lt;/P&gt;
&lt;P&gt;Koen&lt;/P&gt;</description>
      <pubDate>Fri, 23 Sep 2022 23:56:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Deal-with-DBMS-column-names-over-32-characters-on-SAS/m-p/834989#M330062</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2022-09-23T23:56:19Z</dc:date>
    </item>
    <item>
      <title>Re: Deal with DBMS column names over 32 characters on SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Deal-with-DBMS-column-names-over-32-characters-on-SAS/m-p/834991#M330063</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/60547"&gt;@sbxkoenk&lt;/a&gt; - Good to know you can do this in FEQSQL as well as SQL Passthru.&lt;/P&gt;</description>
      <pubDate>Sat, 24 Sep 2022 02:10:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Deal-with-DBMS-column-names-over-32-characters-on-SAS/m-p/834991#M330063</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2022-09-24T02:10:17Z</dc:date>
    </item>
  </channel>
</rss>

