SQLREDUCEPUTOBS= System Option
For the SQL procedure, when the SQLREDUCEPUT= system option is set to DBMS, BASE, or ALL, specifies the minimum number of observations that must be in a table for PROC SQL to optimize the PUT function in a query.
| Valid in: | SAS Environment Manager, Autoexec file, OPTIONS statement |
|---|---|
| Categories: | Files: SAS Files |
| System administration: SQL | |
| System administration: Performance | |
| PROC OPTIONS GROUP= | SASFILES |
| SQL | |
| PERFORMANCE | |
| Interactions: | If the SQLREDUCEPUT= system option is set to DBMS, BASE, or ALL, conditions for both the SQLREDUCEPUTOBS= and SQLREDUCEPUTVALUES= system options must be met for PROC SQL to optimize the PUT function. |
| The SQLREDUCEPUTOBS= system option works only for DBMSs that record the number of observations in a table. If your DBMS does not record the number of observations, but you create row counts on your table, the SQLREDUCEPUTOBS= option works. | |
| Note: | This option can be restricted by a site administrator. For more information, see Restricted Options in SAS System Options: Reference. |
Table of Contents
Syntax
Syntax Description
n
specifies the minimum number of observations that must be in a table for PROC SQL to optimize the PUT function in a query.
| Default | 0, which indicates that there is no minimum number of observations in a table for PROC SQL to optimize the PUT function. |
|---|---|
| Range | 0–263–1, or approximately 9.2 quintillion |
| Requirement | n must be an integer |
Details
For databases that allow implicit pass-through when the row count for a table is not known, PROC SQL allows the PUT function to be optimized in the query, and the query is executed by the database. When the SQLREDUCEPUT= system option is set to DBMS, BASE, or ALL, PROC SQL considers the values of both the SQLREDUCEPUTVALUES= and SQLREDUCEPUTOBS= system options, and determines whether to optimize the PUT function.
For databases that do not allow implicit pass-through, PROC SQL does not optimize the PUT function, and more of the query is executed by SAS.
See Also
-
System Options: