| Accessing Other Vendors' DBMS Data |
| DBMS Access Using the LIBNAME
Statement |
| Preserving Table and Column Names
When you read data from or pass data to a DBMS, you may want to preserve spaces, special characters, and case sensitivity in column or table names. You can use the SAS/ACCESS LIBNAME options PRESERVE_COL_NAMES= and PRESERVE_TAB_NAMES= to preserve column names and table names, respectively. |
PRESERVE_COL_NAMES=NO | YES |
For example, in the program below, specifying the value YES
for the PRESERVE_COL_NAMES= option retains the case of the column names in
the ORACLE data accessed through Oraclib.Staff.
libname oraclib oracle
user=kilroy password=washere
path=oracpath preserve_col_names=yes;
proc sql;
create table oraclib.emps as
(select IDnum, LName, FName
from oraclib.staff
where City="STAMFORD");
quit;
|
For details on using these options, see the following:
|
![]() |
|
Copyright © 2002 SAS Institute Inc.,
Cary, NC, USA. All rights reserved.