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.

186 SQL_FUNCTIONS= LIBNAME Option 4 Chapter 10See Also“CONNECTION= LIBNAME Option” on page 108SQL_FUNCTIONS= LIBNAME OptionCustomizes the in-memory SQL dictionary function list <strong>for</strong> this particular LIBNAME statement.Default value:Valid in:none<strong>SAS</strong>/<strong>ACCESS</strong> LIBNAME statementDBMS support: Aster nCluster, DB2 under UNIX and PC Hosts, DB2 under z/OS,Greenplum, HP Neoview, In<strong>for</strong>mix, MySQL, Netezza, ODBC, OLE DB, Oracle, Sybase,Sybase IQ, TeradataSyntaxSQL_FUNCTIONS=ALL | "" |"EXTERNAL_APPEND="Syntax DescriptionALLcustomizes the in-memory SQL dictionary function list <strong>for</strong> this particular LIBNAMEstatement by adding the set of all existing functions, even those that might be riskyor untested.EXTERNAL_REPLACE= [not valid <strong>for</strong> In<strong>for</strong>mix, OLE DB]indicates a user-specified, external <strong>SAS</strong> data set from which the complete functionlist in the SQL dictionary is to be built. The assumption is that the user has alreadyissued a LIBNAME statement to the directory where the <strong>SAS</strong> data set exists.EXTERNAL_APPEND= [not valid <strong>for</strong> In<strong>for</strong>mix, OLE DB]indicates a user-specified, external <strong>SAS</strong> data set from which additional functions areto be added to the existing function list in the SQL dictionary. The assumption isthat the user has already issued a LIBNAME statement to the directory where the<strong>SAS</strong> data set exists.DetailsUse of this option can cause unexpected results, especially if used <strong>for</strong> NULL processingand date, time, and timestamp handling. For example, when executed withoutSQL_FUNCTIONS= enabled, this <strong>SAS</strong> code returns the <strong>SAS</strong> date 15308:proc sql;select distinct DATE () from x.test;quit;However, with SQL_FUNCTIONS=ALL, the same code returns 2001-1-29, which isan ODBC date <strong>for</strong>mat. So you should exercise care when you use this option.Functions that are passed are different <strong>for</strong> each DBMS. See the documentation <strong>for</strong>your <strong>SAS</strong>/<strong>ACCESS</strong> interface <strong>for</strong> list of functions that it supports.

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

Saved successfully!

Ooh no, something went wrong!