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.

314 DB<strong>SAS</strong>TYPE= Data Set Option 4 Chapter 11Syntax DescriptionCOMPATspecifies that the labels returned should be compatible with what the applicationnormally receives. In other words, engines exhibit their normal behavior.NONEspecifies that the engine does not return a column label. The engine returns blanks<strong>for</strong> the column labels.DetailsBy default, the <strong>SAS</strong>/<strong>ACCESS</strong> interface <strong>for</strong> your DBMS generates column labels fromcolumn names instead of from the real column labels.You can use this option to override the default behavior. It is useful <strong>for</strong> when PROCSQL uses column labels as headings instead of column aliases.ExamplesThis example demonstrates how you can use DB<strong>SAS</strong>LABEL= to return blank columnlabels so that PROC SQL can use the column aliases as the column headings.proc sql;select deptno as Department ID, loc as Locationfrom mylib.dept(dbsaslabel=none);When DB<strong>SAS</strong>LABEL=NONE, PROC SQL ignores the aliases, and it uses DEPTNOand LOC as column headings in the result set.DB<strong>SAS</strong>TYPE= Data Set OptionSpecifies data types to override the default <strong>SAS</strong> data types during input processing.Default value: DBMS-specificValid 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 IQ, TeradataSyntaxDB<strong>SAS</strong>TYPE=(column-name-1=<strong>SAS</strong>-data-type)

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

Saved successfully!

Ooh no, something went wrong!