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.

358 PRESERVE_COL_NAMES= Data Set Option 4 Chapter 11See AlsoTo assign this option to a group of relational DBMS tables or views, see the“PARTITION_KEY= LIBNAME Option” on page 164.“DIMENSION= Data Set Option” on page 322PRESERVE_COL_NAMES= Data Set OptionPreserves spaces, special characters, and case sensitivity in DBMS column names when youcreate DBMS tables.Alias: PRESERVE_NAMES= (see “Details”)Default value: LIBNAME settingValid in: DATA and PROC steps (when creating DBMS tables using <strong>SAS</strong>/<strong>ACCESS</strong>software).DBMS support: Aster nCluster, DB2 under UNIX and PC Hosts, DB2 under z/OS,Greenplum, In<strong>for</strong>mix, Microsoft SQL Server, MySQL, Netezza, ODBC, OLE DB, Oracle,Sybase IQ, TeradataSyntaxPRESERVE_COL_NAMES=YES | NOSyntax DescriptionNOspecifies that column names that are used in DBMS table creation are derived from<strong>SAS</strong> variable names by using the <strong>SAS</strong> variable name normalization rules. (For morein<strong>for</strong>mation see the VALIDVARNAME= system option.) However, the databaseapplies its DBMS-specific normalization rules to the <strong>SAS</strong> variable names when itcreates the DBMS column names.The use of name literals to create column names that use database keywords orspecial symbols other than the underscore character might be illegal when DBMSnormalization rules are applied. To include nonstandard <strong>SAS</strong> symbols or databasekeywords, specify PRESERVE_COL_NAMES=YES.YESspecifies that column names that are used in table creation are passed to the DBMSwith special characters and the exact, case-sensitive spelling of the name preserved.DetailsThis option applies only when you use <strong>SAS</strong>/<strong>ACCESS</strong> to create a new DBMS table.When you create a table, you assign the column names by using one of these methods:3 To control the case of the DBMS column names, specify variables with the desiredcase and set PRESERVE_COL_NAMES=YES. If you use special symbols orblanks, you must set VALIDVARNAME=ANY and use name literals. For morein<strong>for</strong>mation, see the naming topic in this document and also the system optionssection in <strong>SAS</strong> Language <strong>Reference</strong>: Dictionary.

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

Saved successfully!

Ooh no, something went wrong!