SUPPORT / SAMPLES & SAS NOTES
 

Support

Problem Note 30390: Improvements are now available in relational database optimization via the SQL procedure

DetailsCodeHotfixAboutRate It

New methods are available for improving relational database optimization. These methods were implemented in SAS® 9.1.3 Service Pack 4, and they are controlled by using automatic macro variables upon the installation of hot fixes E9BB70 and E9BB72.

You can use the following macro variables that can be used with the hot fix.

%let SYS_SQLREDUCEPUT=DBMS; [DBMS, BASE, ALL, NONE] %let SYS_SQLREDUCEPUTOBS=0; [minobs...maxobs] %let SYS_SQLREDUCEPUTVALUES=100; [0...3000]

In a SAS BI envirionment, these macro variables can be set in the appstart_autoexec.sas file located in the ..\Lev1\SASMain directory on the SAS Application Server machine.

In SAS® 9.2, you control these new database optimization methods with new SAS® system options or PROC SQL options.

The system options are as follows:

SQLREDUCEPUT
Specifies whether PROC SQL is to optimize references to PUT() functions within submitted queries. When referencing tables in a database, the elimination of references to PUT() functions can enable more of the query to be passed down to the database.
SQLREDUCEPUTOBS
Specifies the minimum number of observations that must be in a table in order for PROC SQL to consider optimizing the PUT() function in a query. This system option is used for PROC SQL when the SQLREDUCEPUT= system option is NOT set to NONE.
SQLREDUCEPUTVALUES
Specifies the maximum number of SAS format values that can exist in a PUT() function expression in order for PROC SQL to consider optimizing the PUT() function in a query. This system option is used for PROC SQL when the SQLREDUCEPUT= system option is NOT set to NONE

The equivalent PROC SQL options are as follows:

  • REDUCEPUT=
  • REDUCEPUTOBS=
  • REDUCEPUTVALUES=

Select the Hot Fix tab in this note to access the hot fix for this issue.



Operating System and Release Information

Product FamilyProductSystemSAS Release
ReportedFixed*
SAS SystemBase SASz/OS9.1 TS1M3 SP49.2 TS1M0
Microsoft® Windows® for 64-Bit Itanium-based Systems9.1 TS1M3 SP49.2 TS1M0
Microsoft Windows Server 2003 Datacenter 64-bit Edition9.1 TS1M3 SP49.2 TS1M0
Microsoft Windows Server 2003 Enterprise 64-bit Edition9.1 TS1M3 SP49.2 TS1M0
Microsoft Windows XP 64-bit Edition9.1 TS1M3 SP49.2 TS1M0
Microsoft® Windows® for x649.1 TS1M3 SP49.2 TS1M0
Microsoft Windows 2000 Advanced Server9.1 TS1M3 SP49.2 TS1M0
Microsoft Windows 2000 Datacenter Server9.1 TS1M3 SP49.2 TS1M0
Microsoft Windows 2000 Server9.1 TS1M3 SP49.2 TS1M0
Microsoft Windows 2000 Professional9.1 TS1M3 SP49.2 TS1M0
Microsoft Windows NT Workstation9.1 TS1M3 SP49.1 TS1M3 SP4
Microsoft Windows Server 2003 Datacenter Edition9.1 TS1M3 SP49.2 TS1M0
Microsoft Windows Server 2003 Enterprise Edition9.1 TS1M3 SP49.2 TS1M0
Microsoft Windows Server 2003 Standard Edition9.1 TS1M3 SP49.2 TS1M0
Microsoft Windows XP Professional9.1 TS1M3 SP49.2 TS1M0
Windows Vista9.1 TS1M3 SP49.2 TS1M0
64-bit Enabled AIX9.1 TS1M3 SP49.2 TS1M0
64-bit Enabled HP-UX9.1 TS1M3 SP49.2 TS1M0
64-bit Enabled Solaris9.1 TS1M3 SP49.2 TS1M0
HP-UX IPF9.1 TS1M3 SP49.2 TS1M0
Linux9.1 TS1M3 SP49.2 TS1M0
Linux on Itanium9.1 TS1M3 SP49.2 TS1M0
OpenVMS Alpha9.1 TS1M3 SP49.2 TS1M0
Tru64 UNIX9.1 TS1M3 SP49.2 TS1M0
* For software releases that are not yet generally available, the Fixed Release is the software release in which the problem is planned to be fixed.