Problem Note 57855: Optimization done for a user-defined format might result in incorrect values being passed to the DBMS
When optimization is done for a user-defined format so that it can be processed by the database management system (DBMS), incorrect code might be passed to the DBMS. Incorrect results might occur when the following is true about the query:
- A DBMS engine is used to reference a DBMS table
- A PUT function referencing a numeric user-defined format is used in a SELECT, WHERE, GROUP BY, or HAVING clause
- Any of the numeric values that are part of the format are greater than 12 digits in length
- SAS and user-defined formats have not been published to the database
When SAS® tries to optimize the performance of the query by passing the format to the database, it uses a BEST12. format to format the value in the format rather than the actual value. Consequently, a number like 1234567890123 is passed as 1234567900000.
To work around this issue, turn off optimization of the PUT function by setting the system option SQLREDUCEPUT=NONE.
Operating System and Release Information
SAS System | Base SAS | z/OS | 9.1 TS1M3 | 9.4 TS1M4 |
Microsoft® Windows® for 64-Bit Itanium-based Systems | 9.1 TS1M3 | |
Microsoft Windows Server 2003 Datacenter 64-bit Edition | 9.1 TS1M3 | |
Microsoft Windows Server 2003 Enterprise 64-bit Edition | 9.1 TS1M3 | |
Microsoft Windows XP 64-bit Edition | 9.1 TS1M3 | |
Microsoft Windows 2000 Advanced Server | 9.1 TS1M3 | |
Microsoft Windows 2000 Datacenter Server | 9.1 TS1M3 | |
Microsoft Windows 2000 Server | 9.1 TS1M3 | |
Microsoft Windows 2000 Professional | 9.1 TS1M3 | |
Microsoft Windows NT Workstation | 9.1 TS1M3 | |
Microsoft Windows Server 2003 Datacenter Edition | 9.1 TS1M3 | |
Microsoft Windows Server 2003 Enterprise Edition | 9.1 TS1M3 | |
Microsoft Windows Server 2003 Standard Edition | 9.1 TS1M3 | |
Microsoft Windows XP Professional | 9.1 TS1M3 | |
Windows Vista | 9.1 TS1M3 | |
Windows Vista for x64 | 9.1 TS1M3 | |
64-bit Enabled AIX | 9.1 TS1M3 | 9.4 TS1M4 |
64-bit Enabled HP-UX | 9.1 TS1M3 | 9.4 TS1M4 |
64-bit Enabled Solaris | 9.1 TS1M3 | 9.4 TS1M4 |
HP-UX IPF | 9.1 TS1M3 | 9.4 TS1M4 |
Linux | 9.1 TS1M3 | 9.4 TS1M4 |
OpenVMS Alpha | 9.1 TS1M3 | 9.4 TS1M4 |
Tru64 UNIX | 9.1 TS1M3 | 9.4 TS1M4 |
*
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.
Type: | Problem Note |
Priority: | alert |
Date Modified: | 2016-03-23 12:31:43 |
Date Created: | 2016-03-14 11:51:24 |