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.

Macro Variables and System Options <strong>for</strong> <strong>Relational</strong> <strong>Databases</strong> 4 SQLGENERATION= System Option 421An engine can appear only once, and a procedure can appear only once <strong>for</strong> agiven engine.""resets the value to the default that was shipped.DetailsUse this option with such procedures as PROC FREQ to indicate what SQL isgenerated <strong>for</strong> in-database processing based on the type of subsetting that you need andthe <strong>SAS</strong>/<strong>ACCESS</strong> engines that you want to access the source table.You must specify NONE and DBMS, which indicate the primary state.The maximum length of the option value is 4096. Also, parentheses are requiredwhen this option value contains multiple keywords.Not all procedures support SQL generation <strong>for</strong> in-database processing <strong>for</strong> everyengine type. If you specify a setting that is not supported, an error message indicatesthe level of SQL generation that is not supported, and the procedure can reset to thedefault so that source table records can be read and processed within <strong>SAS</strong>. If this is notpossible, the procedure ends and sets SYSERR= as needed.You can specify different SQLGENERATION= values <strong>for</strong> the DATA= and OUT= datasets by using different LIBNAME statements <strong>for</strong> each of these data sets.Here is how <strong>SAS</strong>/<strong>ACCESS</strong> handles precedence.Table 12.2Precedence of Values <strong>for</strong> SQLGENERATION= LIBNAME and System OptionsLIBNAMEOptionPROC EXCLUDE onSystem Option?EngineTypeEngine Specified onSystem OptionResultingValueFrom(option)not setNONEyesdatabaseinterfaceNONEDBMSNONEEXCLUDEDBsystemDBMSNONEnoNONELIBNAMEDBMSDBMSnot setNONENONEsystemDBMSDBMSNONEDBMSno SQLgenerated<strong>for</strong> thisdatabasehost ordatabaseversionNONEDBMSNONELIBNAMEnot setBasesystemNONELIBNAMEDBMSExamplesHere is the default that is shipped with the product.options sqlgeneration=’’ ;proc options option=sqlgeneration

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

Saved successfully!

Ooh no, something went wrong!