<?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 How to make refference to a table with 33 characters long in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-make-refference-to-a-table-with-33-characters-long/m-p/765143#M39449</link>
    <description>&lt;P&gt;I am trying to use an Access (MS Access) table with a name larger than 32 characters long in a PROC SQL join statement but it look like impossible to do so.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone knows how deal with that?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've tried link the table to another one but it still doesn't work for SAS doesn't recognise it as a table. Also tried to use CONNET TO DBMS ( ... ), wich is the answer I found in StackOverflow, but the problem stay still.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Remembering that I can't simply just rename the table because it's part of some proccesses that came from external parts that i don't have how to rename.&lt;/P&gt;</description>
    <pubDate>Tue, 31 Aug 2021 19:02:30 GMT</pubDate>
    <dc:creator>OliveiraMiguelZ</dc:creator>
    <dc:date>2021-08-31T19:02:30Z</dc:date>
    <item>
      <title>How to make refference to a table with 33 characters long</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-make-refference-to-a-table-with-33-characters-long/m-p/765143#M39449</link>
      <description>&lt;P&gt;I am trying to use an Access (MS Access) table with a name larger than 32 characters long in a PROC SQL join statement but it look like impossible to do so.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone knows how deal with that?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've tried link the table to another one but it still doesn't work for SAS doesn't recognise it as a table. Also tried to use CONNET TO DBMS ( ... ), wich is the answer I found in StackOverflow, but the problem stay still.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Remembering that I can't simply just rename the table because it's part of some proccesses that came from external parts that i don't have how to rename.&lt;/P&gt;</description>
      <pubDate>Tue, 31 Aug 2021 19:02:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-make-refference-to-a-table-with-33-characters-long/m-p/765143#M39449</guid>
      <dc:creator>OliveiraMiguelZ</dc:creator>
      <dc:date>2021-08-31T19:02:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to make refference to a table with 33 characters long</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-make-refference-to-a-table-with-33-characters-long/m-p/765147#M39450</link>
      <description>The connect to DBMS() option - aka direct pass through is the correct option. Please show what you've tried in that regards and we can help you modify your code as needed.</description>
      <pubDate>Tue, 31 Aug 2021 19:12:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-make-refference-to-a-table-with-33-characters-long/m-p/765147#M39450</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-08-31T19:12:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to make refference to a table with 33 characters long</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-make-refference-to-a-table-with-33-characters-long/m-p/765165#M39451</link>
      <description>&lt;P&gt;I am not that good with this kind of connection, I tried something like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;PROC SQL;
    CONNECT TO OLEDB ("Provider=Microsoft.ACE.OLEDB.12.0; Data Source=\\myfilepath.mdb;")
    SELECT * FROM CONNECTION TO OLEDB ( 
       SELECT * FROM MyRecordsetName
     );
QUIT; &lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 31 Aug 2021 20:09:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-make-refference-to-a-table-with-33-characters-long/m-p/765165#M39451</guid>
      <dc:creator>OliveiraMiguelZ</dc:creator>
      <dc:date>2021-08-31T20:09:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to make refference to a table with 33 characters long</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-make-refference-to-a-table-with-33-characters-long/m-p/765167#M39452</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/389704"&gt;@OliveiraMiguelZ&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I am not that good with this kind of connection, I tried something like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;PROC SQL;
    CONNECT TO OLEDB ("Provider=Microsoft.ACE.OLEDB.12.0; Data Source=\\myfilepath.mdb;")
    SELECT * FROM CONNECTION TO OLEDB ( 
       SELECT * FROM MyRecordsetName
     );
QUIT; &lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Looks good.&amp;nbsp; What happened?&amp;nbsp; Did you get an error message?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think that dialect of SQL allows you to use square brackets around object names.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt; SELECT * FROM [MyRecordsetName]&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 31 Aug 2021 20:14:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-make-refference-to-a-table-with-33-characters-long/m-p/765167#M39452</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2021-08-31T20:14:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to make refference to a table with 33 characters long</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-make-refference-to-a-table-with-33-characters-long/m-p/765180#M39453</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC SQL;
    CONNECT TO OLEDB ("Provider=Microsoft.ACE.OLEDB.12.0; Data Source=\\myfilepath.mdb;")
   create table smallerName as
 SELECT * FROM CONNECTION TO OLEDB ( 
       SELECT * FROM MyRecordsetName
     );
QUIT; &lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Other than the CREATE TABLE that's missing it seems correct to me. Did it not work for you?&lt;/P&gt;</description>
      <pubDate>Tue, 31 Aug 2021 21:29:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-make-refference-to-a-table-with-33-characters-long/m-p/765180#M39453</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-08-31T21:29:22Z</dc:date>
    </item>
  </channel>
</rss>

