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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

302 DBGEN_NAME= Data Set Option 4 Chapter 11See Also“DBNULL= Data Set Option” on page 310“DBTYPE= Data Set Option” on page 319DBGEN_NAME= Data Set OptionSpecifies how <strong>SAS</strong> automatically renames columns (when they contain characters that <strong>SAS</strong> doesnot allow, such as $) to valid <strong>SAS</strong> variable names.Default value: DBMSValid in: DATA and PROC steps (when accessing DBMS data using <strong>SAS</strong>/<strong>ACCESS</strong>software)DBMS 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, Sybase IQ, TeradataSyntaxDBGEN_NAME=DBMS | <strong>SAS</strong>Syntax DescriptionDBMSspecifies that <strong>SAS</strong> renames DBMS columns to valid <strong>SAS</strong> variable names. <strong>SAS</strong>converts any disallowed characters to underscores. If it converts a column to a namethat already exists, it appends a sequence number at the end of the new name.<strong>SAS</strong>specifies that <strong>SAS</strong> converts DBMS columns with disallowed characters into valid <strong>SAS</strong>variable names. <strong>SAS</strong> uses the <strong>for</strong>mat _COLn, where n is the column number,starting with 0. If <strong>SAS</strong> converts a name to a name that already exists, it appends asequence number at the end of the new name.Details<strong>SAS</strong> retains column names when it reads data from DBMS tables unless a columnname contains characters that <strong>SAS</strong> does not allow, such as $ or @. <strong>SAS</strong> allowsalphanumeric characters and the underscore (_).This option is intended primarily <strong>for</strong> National Language Support, notably convertingkanji to English characters. English characters that are converted from kanji are oftenthose that <strong>SAS</strong> does not allow. Although this option works <strong>for</strong> the single-byte characterset (SBCS) version of <strong>SAS</strong>, <strong>SAS</strong> ignores it in the double-byte character set (DBCS)version. So if you have the DBCS version, you must first set VALIDVARNAME=ANYbe<strong>for</strong>e using your language characters as column variables.Each of the various <strong>SAS</strong>/<strong>ACCESS</strong> interfaces handled name collisions differently in<strong>SAS</strong> 6. Some interfaces appended at the end of the name, some replaced one or more ofthe final characters in the name, some used a single sequence number, and others usedunique counters. When you specify VALIDVARNAME=V6, <strong>SAS</strong> handles name collisionsas it did in <strong>SAS</strong> 6.

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

Saved successfully!

Ooh no, something went wrong!