<?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: How to access database tablename with special character? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-access-database-tablename-with-special-character/m-p/877374#M346613</link>
    <description>&lt;P&gt;To allow SAS code to use non-standard names for datasets (members) you need to the VALIDMEMBERNAME option to EXTEND.&amp;nbsp; But even then there are some characters, like / , that are not allowed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You mentioned that the data is in a database.&amp;nbsp; Use a pass through query to access the data.&lt;/P&gt;
&lt;P&gt;For example if you have a libref defined that points to some external database, like ORACLE,&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname mydb oracle ... ;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;You can use that LIBREF in SQL code like this.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
connect using mydb;
create table want as select * from connection to mydb
(select * 
  from "mygoofy or long table name"
);
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 24 May 2023 19:57:31 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2023-05-24T19:57:31Z</dc:date>
    <item>
      <title>How to access database tablename with special character?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-access-database-tablename-with-special-character/m-p/877317#M346595</link>
      <description>&lt;P&gt;&amp;nbsp;Hello Friends,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;how to access a long database tablename which has specical character like /, _,.?&lt;/P&gt;
&lt;P&gt;Any help would be appreciated. Thank you.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 May 2023 17:16:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-access-database-tablename-with-special-character/m-p/877317#M346595</guid>
      <dc:creator>woo</dc:creator>
      <dc:date>2023-05-24T17:16:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to access database tablename with special character?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-access-database-tablename-with-special-character/m-p/877323#M346598</link>
      <description>&lt;P&gt;I would change the name of the table.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 May 2023 17:19:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-access-database-tablename-with-special-character/m-p/877323#M346598</guid>
      <dc:creator>HB</dc:creator>
      <dc:date>2023-05-24T17:19:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to access database tablename with special character?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-access-database-tablename-with-special-character/m-p/877324#M346599</link>
      <description>Have you tried the NLITERAL approach?&lt;BR /&gt;&lt;BR /&gt;schema.'Table/Name'n</description>
      <pubDate>Wed, 24 May 2023 17:19:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-access-database-tablename-with-special-character/m-p/877324#M346599</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2023-05-24T17:19:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to access database tablename with special character?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-access-database-tablename-with-special-character/m-p/877367#M346606</link>
      <description>&lt;P&gt;Thank you Reeza, can you please provide example? Thank you.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 May 2023 19:25:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-access-database-tablename-with-special-character/m-p/877367#M346606</guid>
      <dc:creator>woo</dc:creator>
      <dc:date>2023-05-24T19:25:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to access database tablename with special character?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-access-database-tablename-with-special-character/m-p/877368#M346607</link>
      <description>&lt;P&gt;It was below...more explicitly, something like this:&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;data want;
set schema.'Table/Name'n;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 24 May 2023 19:30:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-access-database-tablename-with-special-character/m-p/877368#M346607</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2023-05-24T19:30:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to access database tablename with special character?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-access-database-tablename-with-special-character/m-p/877372#M346611</link>
      <description>&lt;P&gt;&lt;SPAN&gt;The name can include special characters, except for the &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;/ \ * ? " &amp;lt; &amp;gt; |: -.&lt;/STRONG&gt;&lt;/FONT&gt; characters.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Several of your characters fall into the characters that cannot be included unfortunately. You will need to rename them.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/nlsref/n10nwm6blrcrtmn0zdcwyxlwxfjh.htm" target="_blank"&gt;https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/nlsref/n10nwm6blrcrtmn0zdcwyxlwxfjh.htm&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 24 May 2023 19:43:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-access-database-tablename-with-special-character/m-p/877372#M346611</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2023-05-24T19:43:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to access database tablename with special character?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-access-database-tablename-with-special-character/m-p/877374#M346613</link>
      <description>&lt;P&gt;To allow SAS code to use non-standard names for datasets (members) you need to the VALIDMEMBERNAME option to EXTEND.&amp;nbsp; But even then there are some characters, like / , that are not allowed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You mentioned that the data is in a database.&amp;nbsp; Use a pass through query to access the data.&lt;/P&gt;
&lt;P&gt;For example if you have a libref defined that points to some external database, like ORACLE,&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname mydb oracle ... ;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;You can use that LIBREF in SQL code like this.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
connect using mydb;
create table want as select * from connection to mydb
(select * 
  from "mygoofy or long table name"
);
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 24 May 2023 19:57:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-access-database-tablename-with-special-character/m-p/877374#M346613</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2023-05-24T19:57:31Z</dc:date>
    </item>
  </channel>
</rss>

