A fix is available
APAR status
Closed as program error.
Error description
In native mode, the scale of an SQL expression involving an operation between a BIGINT constant and a DECIMAL value (constant, column, SQL expression) is not compliant with Db2 rules. When evaluating an operation involving a BIGINT constant and a decimal value, Db2 HPU casts the BIGINT constant into a DECIMAL(p, 0) where p stand for the number of digits of the constant instead of DECIMAL(19,0) as described by the Db2 specifications. Depending on the values involved in the operation, the result can have an incorrect value and/or an incorrect scale.
Local fix
Problem summary
**************************************************************** * USERS AFFECTED: Users of Db2 High Performance Unload * * for z/OS * **************************************************************** * PROBLEM DESCRIPTION: In native mode, the scale and/or the * * value of an SQL expression which * * evaluation requires a BIGINT constant * * to be casted into DECIMAL type is not * * compliant with Db2 rules. * * * * When evaluating an operation or a * * scalar function involving a BIGINT * * constant and requiring the BIGINT * * constant to be casted into DECIMAL * * type, Db2 HPU casts the BIGINT constant * * into a DECIMAL(19, 0) instead of * * DECIMAL(p,0) where p stand for the * * number of digits of the constant, as * * described by the Db2 specifications. * * Depending on the values involved in the * * SQL expression,,its result can have an * * incorrect value and/or an incorrect * * scale. * **************************************************************** * RECOMMENDATION: Apply the PTF * **************************************************************** Incorrect value/scale for expression involving operation between BIGINT constant and decimal value.
Problem conclusion
Code has been changed to fix this problem
Temporary fix
Comments
APAR Information
APAR number
PH35541
Reported component name
DB2 HI PERF UNL
Reported component ID
5697F4400
Reported release
510
Status
CLOSED PER
PE
NoPE
HIPER
NoHIPER
Special Attention
NoSpecatt / Xsystem
Submitted date
2021-03-19
Closed date
2021-04-26
Last modified date
2021-06-01
APAR is sysrouted FROM one or more of the following:
APAR is sysrouted TO one or more of the following:
Modules/Macros
INZ$$PRM INZBIND INZTDSC INZTVAR INZUTILK
Fix information
Fixed component name
DB2 HI PERF UNL
Fixed component ID
5697F4400
Applicable component levels
Fix is available
Select the PTF appropriate for your component level. You will be required to sign in. Distribution on physical media is not available in all countries.
[{"Line of Business":{"code":"LOB10","label":"Data and AI"},"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SSZJXP","label":"DB2 Tools for z\/OS"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"5.1.0"}]
Document Information
Modified date:
03 June 2021