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.

<strong>SAS</strong> Names and Support <strong>for</strong> DBMS Names 4 Naming Behavior When Retrieving DBMS Data 15Options That Affect <strong>SAS</strong>/<strong>ACCESS</strong> Naming BehaviorTo change how <strong>SAS</strong> handles case-sensitive or nonstandard DBMS table and columnnames, specify one or more of the following options.PRESERVE_COL_NAMES=YESis a <strong>SAS</strong>/<strong>ACCESS</strong> LIBNAME and data set option that applies only to creatingDBMS tables. When set to YES, this option preserves spaces, special characters,and mixed case in DBMS column names. See “PRESERVE_COL_NAMES=LIBNAME Option” on page 166 <strong>for</strong> more in<strong>for</strong>mation about this option.PRESERVE_TAB_NAMES=YESis a <strong>SAS</strong>/<strong>ACCESS</strong> LIBNAME option. When set to YES, this option preservesblank spaces, special characters, and mixed case in DBMS table names. See“PRESERVE_TAB_NAMES= LIBNAME Option” on page 168 <strong>for</strong> more in<strong>for</strong>mationabout this option.Note: Specify the alias PRESERVE_NAMES=YES | NO if you plan to specifyboth the PRESERVE_COL_NAMES= and PRESERVE_TAB_NAMES= options inyour LIBNAME statement. Using this alias saves time when you are coding. 4DQUOTE=ANSIis a PROC SQL option. This option specifies whether PROC SQL treats valueswithin double quotation marks as a character string or as a column name or tablename. When you specify DQUOTE=ANSI, your <strong>SAS</strong> code can refer to DBMSnames that contain characters and spaces that are not allowed by <strong>SAS</strong> namingconventions. Specifying DQUOTE=ANSI enables you to preserve specialcharacters in table and column names in your SQL statements by enclosing thenames in double quotation marks.To preserve table names, you must also specify PRESERVE_TAB_NAMES=YES.To preserve column names when you create a table, you must also specifyPRESERVE_COL_NAMES=YES.VALIDVARNAME=ANYis a global system option that can override the <strong>SAS</strong> naming conventions. See“VALIDVARNAME= System Option” on page 423 <strong>for</strong> in<strong>for</strong>mation about this option.The availability of these options and their default settings are DBMS-specific, so see the<strong>SAS</strong>/<strong>ACCESS</strong> documentation <strong>for</strong> your DBMS to learn how the <strong>SAS</strong>/<strong>ACCESS</strong> engine <strong>for</strong>your DBMS processes names.Naming Behavior When Retrieving DBMS DataThe following two tables illustrate how <strong>SAS</strong>/<strong>ACCESS</strong> processes DBMS names whenretrieving data from a DBMS. This in<strong>for</strong>mation applies generally to all interfaces. Insome cases, however, it is not necessary to specify these options because the optiondefault values are DBMS-specific. See the documentation <strong>for</strong> your <strong>SAS</strong>/<strong>ACCESS</strong>interface <strong>for</strong> details.

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

Saved successfully!

Ooh no, something went wrong!