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 Replacing Unsupported Characters 17Table 2.3<strong>SAS</strong> Variable Names to DBMS Column Names When Creating Tables<strong>SAS</strong> Variable Name as Input Desired DBMS Column Name OptionsAny <strong>SAS</strong> variable name, such asMilesA case-sensitive <strong>SAS</strong> variablename, such as MilesA <strong>SAS</strong> variable name withcharacters that are not valid in anormalized <strong>SAS</strong> name, such asMiles-to-GoDefault DBMS column name(normalized to follow the DBMS’snaming conventions), such as MILESCase-sensitive DBMS column name,such as MilesCase-sensitive DBMS column namethat matches the <strong>SAS</strong> name, such asMiles-to-GoPRESERVE_COL_NAMES=NOPRESERVE_COL_NAMES=YESPROC SQL DQUOTE=ANSI andPRESERVE_COL_NAMES=YESor, in a DATA or PROC step, use a<strong>SAS</strong> name literal andPRESERVE_COL_NAMES=YESand VALIDVARNAME=ANYTable 2.4<strong>SAS</strong> Data Set Names to DBMS Table Names<strong>SAS</strong> Data Set Name as Input Desired DBMS Table Name OptionsAny <strong>SAS</strong> data set name, such asPayrollCase-sensitive <strong>SAS</strong> data set name,such as PayrollCase-sensitive <strong>SAS</strong> data set namewith characters that are not validin a normalized <strong>SAS</strong> name, such asPayroll-<strong>for</strong>-QCDefault DBMS table name(normalized to follow the DBMS’snaming conventions), such asPAYROLLCase-sensitive DBMS table name,such as PayrollCase-sensitive DBMS table namethat matches the <strong>SAS</strong> name, suchas Payroll-<strong>for</strong>-QCPRESERVE_TAB_NAMES=NOPRESERVE_TAB_NAMES=YESPROC SQL DQUOTE=ANSI andPRESERVE_TAB_NAMES=YES or,in a DATA or PROC step, use a<strong>SAS</strong> name literal andPRESERVE_TAB_NAMES=YES<strong>SAS</strong>/<strong>ACCESS</strong> Naming ExamplesReplacing Unsupported CharactersIn the following example, a view, myview, is created from the Oracle table, mytable.proc sql;connect to oracle (user=testuser password=testpass);create view myview asselect * from connection to oracle(select "Amount Budgeted$", "Amount Spent$"from mytable);quit;proc contents data=myview;

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

Saved successfully!

Ooh no, something went wrong!