13.07.2015 Views

SAS/ACCESS 9.2 for Relational Databases: Reference, Fourth Edition

SAS/ACCESS 9.2 for Relational Databases: Reference, Fourth Edition

SAS/ACCESS 9.2 for Relational Databases: Reference, Fourth Edition

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

168 PRESERVE_TAB_NAMES= LIBNAME Option 4 Chapter 103 Specify the global system option VALIDVARNAME=ANY and use name literals inthe <strong>SAS</strong> language. For example:proc print data=mydblib.mytable;<strong>for</strong>mat ’Total$Cost’n 22.2;If you are creating a table in PROC SQL, you must also include thePRESERVE_COL_NAMES=YES option in your LIBNAME statement. Here is anexample:libname mydblib oracle user=testuser password=testpasspreserve_col_names=yes;proc sql dquote=ansi;create table mydblib.mytable ("my$column" int);PRESERVE_COL_NAMES= does not apply to the SQL pass-through facility.See AlsoTo apply this option to an individual data set, see the naming in your DBMSinterface <strong>for</strong> the “PRESERVE_COL_NAMES= Data Set Option” on page 358.Chapter 2, “<strong>SAS</strong> Names and Support <strong>for</strong> DBMS Names,” on page 11“VALIDVARNAME= System Option” on page 423PRESERVE_TAB_NAMES= LIBNAME OptionPreserves spaces, special characters, and case sensitivity in DBMS table names.Alias: PRESERVE_NAMES= (see “Details”)Default value: DBMS-specificValid in: <strong>SAS</strong>/<strong>ACCESS</strong> LIBNAME statementDBMS support: Aster nCluster, DB2 under UNIX and PC Hosts, DB2 under z/OS,Greenplum, HP Neoview, In<strong>for</strong>mix, Microsoft SQL Server, MySQL, Netezza, ODBC,OLE DB, Oracle, Sybase IQ, TeradataSyntaxPRESERVE_TAB_NAMES=YES | NOSyntax DescriptionNOspecifies that when you create DBMS tables or refer to an existing table, the tablenames are derived from <strong>SAS</strong> member names by using <strong>SAS</strong> member namenormalization. However, the database applies DBMS-specific normalization rules tothe <strong>SAS</strong> member names. There<strong>for</strong>e, the table names are created or referenced in thedatabase following the DBMS-specific normalization rules.When you use <strong>SAS</strong> to read a list of table names (<strong>for</strong> example, in the <strong>SAS</strong> Explorerwindow), the tables whose names do not con<strong>for</strong>m to the <strong>SAS</strong> member name

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!