<?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: Trying to read Oracle Database with $ symbol in name using ODBC in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Trying-to-read-Oracle-Database-with-symbol-in-name-using-ODBC/m-p/413275#M101132</link>
    <description>&lt;P&gt;And you are sure you are using exactly this code:&lt;/P&gt;
&lt;PRE&gt;data orc_data;
  set oracle."&lt;SPAN&gt;MGMT$METRIC_CURRENT&lt;/SPAN&gt;"n;
run;&lt;/PRE&gt;
&lt;P&gt;Note the oracle is the libname, then a dot, then the name of the table in quotes with n after.&lt;/P&gt;</description>
    <pubDate>Tue, 14 Nov 2017 11:31:17 GMT</pubDate>
    <dc:creator>RW9</dc:creator>
    <dc:date>2017-11-14T11:31:17Z</dc:date>
    <item>
      <title>Trying to read Oracle Database with $ symbol in name using ODBC</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Trying-to-read-Oracle-Database-with-symbol-in-name-using-ODBC/m-p/413265#M101128</link>
      <description>&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Not sure if this is a relatively simple one but it is something I haven't come across before.&amp;nbsp; I have done some searching online and haven't come up with anything yet.&lt;BR /&gt;&lt;BR /&gt;I am trying to read in some Oracle&amp;nbsp;system performance data using ODBC and submitting the&amp;nbsp;following code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;LIBNAME&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; ORACLE ODBC DSN=ORC_DAT uid=user pwd=pwd SCHEMA=schema;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;%let&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; setorc = 'ORACLE.MGMT$METRIC_CURRENT';&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; ORC_DATA;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;set&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; &amp;amp;setorc;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;I have managed to get the code working on a different table with no $ symbol.&amp;nbsp; The database guy has also tried to rename the table or create a view to no avail.&amp;nbsp; Finally&amp;nbsp;I have also tried a lot of combinations of quotes as well.&amp;nbsp; The error I am getting for the code above is as follows:&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ERROR: The physical file name "ORACLE.MGMT$METRIC_CURRENT" is too long&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I guess my question is how can I read in the table and get&amp;nbsp;SAS to ignore the $ symbol, as I assume this is the error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Nov 2017 10:45:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Trying-to-read-Oracle-Database-with-symbol-in-name-using-ODBC/m-p/413265#M101128</guid>
      <dc:creator>LeeRoy</dc:creator>
      <dc:date>2017-11-14T10:45:38Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to read Oracle Database with $ symbol in name using ODBC</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Trying-to-read-Oracle-Database-with-symbol-in-name-using-ODBC/m-p/413267#M101129</link>
      <description>&lt;P&gt;You could try literal naming:&lt;/P&gt;
&lt;PRE&gt;%let setorc=ORACLE.MGMT$METRIC_CURRENT;
data orc_data;
  set "&amp;amp;setorc."n;
run;&lt;/PRE&gt;
&lt;P&gt;Note, I would avoid using quotes in macro variables (and avoid coding in mixed case).&lt;/P&gt;</description>
      <pubDate>Tue, 14 Nov 2017 10:53:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Trying-to-read-Oracle-Database-with-symbol-in-name-using-ODBC/m-p/413267#M101129</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2017-11-14T10:53:17Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to read Oracle Database with $ symbol in name using ODBC</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Trying-to-read-Oracle-Database-with-symbol-in-name-using-ODBC/m-p/413268#M101130</link>
      <description>&lt;P&gt;Thanks for the quick reply.&lt;BR /&gt;&lt;BR /&gt;Just tried this and am getting a different error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ERROR: The value ORACLE.MGMT$METRIC_CURRENT is not a valid SAS name&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Nov 2017 10:57:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Trying-to-read-Oracle-Database-with-symbol-in-name-using-ODBC/m-p/413268#M101130</guid>
      <dc:creator>LeeRoy</dc:creator>
      <dc:date>2017-11-14T10:57:12Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to read Oracle Database with $ symbol in name using ODBC</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Trying-to-read-Oracle-Database-with-symbol-in-name-using-ODBC/m-p/413275#M101132</link>
      <description>&lt;P&gt;And you are sure you are using exactly this code:&lt;/P&gt;
&lt;PRE&gt;data orc_data;
  set oracle."&lt;SPAN&gt;MGMT$METRIC_CURRENT&lt;/SPAN&gt;"n;
run;&lt;/PRE&gt;
&lt;P&gt;Note the oracle is the libname, then a dot, then the name of the table in quotes with n after.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Nov 2017 11:31:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Trying-to-read-Oracle-Database-with-symbol-in-name-using-ODBC/m-p/413275#M101132</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2017-11-14T11:31:17Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to read Oracle Database with $ symbol in name using ODBC</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Trying-to-read-Oracle-Database-with-symbol-in-name-using-ODBC/m-p/413298#M101135</link>
      <description>&lt;P&gt;try&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;option validmemname=extend;&lt;/P&gt;
&lt;P&gt;libname oracle odbc ........&lt;/P&gt;
&lt;P&gt;data have;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;set oracle.'&lt;SPAN&gt;MGMT$METRIC_CURRENT'n ;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;run;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;or use&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;proc copy in=oracle out=work;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;run;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Nov 2017 12:17:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Trying-to-read-Oracle-Database-with-symbol-in-name-using-ODBC/m-p/413298#M101135</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2017-11-14T12:17:02Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to read Oracle Database with $ symbol in name using ODBC</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Trying-to-read-Oracle-Database-with-symbol-in-name-using-ODBC/m-p/413347#M101145</link>
      <description>&lt;P&gt;Massive thanks to both RW9 and Ksharp.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using a combination of both literal naming and proc copy I have come to the realisation that SAS cannot see the datasets I need and this is most likely due to the way they have been created.&amp;nbsp; I am getting my database guy to&amp;nbsp;dump the data into a flat file.&lt;BR /&gt;&lt;BR /&gt;Many Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 14 Nov 2017 14:56:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Trying-to-read-Oracle-Database-with-symbol-in-name-using-ODBC/m-p/413347#M101145</guid>
      <dc:creator>LeeRoy</dc:creator>
      <dc:date>2017-11-14T14:56:05Z</dc:date>
    </item>
  </channel>
</rss>

