For more information,
see the
SAS/ACCESS naming topic in the DBMS-specific reference section
for your interface in this document.
To use table names in
your SAS program that are not valid SAS names, use one of these techniques.
-
Use the PROC SQL option DQUOTE=
and place double quotation marks around the table name. The libref
must specify PRESERVE_TAB_NAMES=YES. Here is an example.
libname mydblib oracle user=testuser password=testpass
preserve_tab_names=yes;
proc sql dquote=ansi;
select * from mydblib."my table";
-
Use name literals in the SAS language.
The libref must specify PRESERVE_TAB_NAMES=YES. Here is an example.
libname mydblib oracle user=testuser
password=testpass preserve_tab_names=yes;
proc print data=mydblib.'my table'n;
run;
To save some time when
coding, specify the PRESERVE_NAMES= alias if you plan to specify both
the PRESERVE_COL_NAMES= and PRESERVE_TAB_NAMES= options in your LIBNAME
statement.
Oracle: Unless
you specify PRESERVE_TAB_NAMES=YES, the table name that you enter
for SCHEMA= LIBNAME option or for the DBINDEX= data set option is
converted to uppercase.