To use table names in
your SAS program that are not valid SAS names, use one of the following
techniques:
-
Use the PROC SQL option DQUOTE=
and place double quotation marks around the table name. The libref
must specify PRESERVE_TAB_NAMES=YES. For example:
libname mydblib fedsvr server="d1234.us.company.com"
port=2171 user=user1 pwd=pass1 dsn=oradsn;
proc sql dquote=ansi;
select * from mydblib."my table";
-
Use name literals in the SAS language.
The libref must specify PRESERVE_TAB_NAMES=YES. For example:
libname mydblib fedsvr server="d1234.us.company.com"
port=2171 user=user1 pwd=pass1
dsn=oradsn preserve_tab_names=yes;
proc print data=mydblib.'my table'n;
run;
-
Specify the alias PRESERVE_NAMES=
to save time if you are specifying both PRESERVE_COL_NAMES= and PRESERVE_TAB_NAMES=
in your LIBNAME statement.
Oracle
Details: Unless you specify PRESERVE_TAB_NAMES=YES,
the table name that you enter for SCHEMA= or for the DBINDEX= data
set option is converted to uppercase.