<?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 PROC FEDSQL - long column names in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/PROC-FEDSQL-long-column-names/m-p/488227#M15235</link>
    <description>&lt;P&gt;Hi everyone, I am trying to leverage PROC FEDSQL functionality for handling column names which are longer than 32-bits without going through renaming/labeling.&amp;nbsp;Database I am pulling data from is Sybase&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone know how can I approach this problem and move towards a performance friendly solution?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example query which I am trying to get to work:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc fedsql  libs=(mba worklib);
create table worklib.equifax_scores_raw as 
SELECT
    ACTIVE_TRADES_UTIL_50TO69_BAL_AMT,
	'MBA' as sys_src_c,
	current_timestamp as sys_ld_dtm,
	-1 as sys_ld_evt_id
FROM mba.dsa.equifax_das_scr 
where  mba_run_dtm &amp;gt; TIMESTAMP&amp;amp;equifax_data_date;
quit;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;34 %put equifax_data_date .............................. &amp;amp;equifax_data_date;&lt;BR /&gt;equifax_data_date .............................. '2018-05-11 19:51:09.744'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Current issue:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;CODE class=" language-sas"&gt;Need FEDSQL to parse long column name: ACTIVE_TRADES_UTIL_50TO69_BAL_AMT&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;CODE class=" language-sas"&gt;Current error:&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE class=" language-sas"&gt;ERROR: BASE driver, Column name ACTIVE_TRADES_UTIL_50TO69_BAL_AMT is too long for a SAS name NOTE: PROC FEDSQL has set option NOEXEC and will continue to prepare statements. 33 quit;&lt;/CODE&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;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 20 Aug 2018 14:54:42 GMT</pubDate>
    <dc:creator>myelemes</dc:creator>
    <dc:date>2018-08-20T14:54:42Z</dc:date>
    <item>
      <title>PROC FEDSQL - long column names</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/PROC-FEDSQL-long-column-names/m-p/488227#M15235</link>
      <description>&lt;P&gt;Hi everyone, I am trying to leverage PROC FEDSQL functionality for handling column names which are longer than 32-bits without going through renaming/labeling.&amp;nbsp;Database I am pulling data from is Sybase&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone know how can I approach this problem and move towards a performance friendly solution?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example query which I am trying to get to work:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc fedsql  libs=(mba worklib);
create table worklib.equifax_scores_raw as 
SELECT
    ACTIVE_TRADES_UTIL_50TO69_BAL_AMT,
	'MBA' as sys_src_c,
	current_timestamp as sys_ld_dtm,
	-1 as sys_ld_evt_id
FROM mba.dsa.equifax_das_scr 
where  mba_run_dtm &amp;gt; TIMESTAMP&amp;amp;equifax_data_date;
quit;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;34 %put equifax_data_date .............................. &amp;amp;equifax_data_date;&lt;BR /&gt;equifax_data_date .............................. '2018-05-11 19:51:09.744'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Current issue:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;CODE class=" language-sas"&gt;Need FEDSQL to parse long column name: ACTIVE_TRADES_UTIL_50TO69_BAL_AMT&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;CODE class=" language-sas"&gt;Current error:&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE class=" language-sas"&gt;ERROR: BASE driver, Column name ACTIVE_TRADES_UTIL_50TO69_BAL_AMT is too long for a SAS name NOTE: PROC FEDSQL has set option NOEXEC and will continue to prepare statements. 33 quit;&lt;/CODE&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;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Aug 2018 14:54:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/PROC-FEDSQL-long-column-names/m-p/488227#M15235</guid>
      <dc:creator>myelemes</dc:creator>
      <dc:date>2018-08-20T14:54:42Z</dc:date>
    </item>
    <item>
      <title>Re: PROC FEDSQL - long column names</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/PROC-FEDSQL-long-column-names/m-p/488345#M15236</link>
      <description>&lt;P&gt;SQL passthrough is the more common way to fix this. You don't need to rename columns as SAS can handle that automatically. You do have to rename table names though. The 32 character limit on SAS column names and tables is being expanded to 128 in SAS 9.5, due out sometime in 2019 I understand.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Aug 2018 20:24:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/PROC-FEDSQL-long-column-names/m-p/488345#M15236</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2018-08-20T20:24:23Z</dc:date>
    </item>
  </channel>
</rss>

