A fix is available
APAR status
Closed as program error.
Error description
SQL statement with CAST to integer does not work on IDAA V7, it return incorrout. Same statement work in Db2 and IDAA V5. Additional keywords: IDAAV7R1/K Sample: create table tb1 ( col01 decimal ( 8 , 0 ) ) ; insert into tb1 values ( 12345678.0 ) ; insert into tb1 values ( 87654321.0 ) ; set current query acceleration all ; select cast(cast("TB1"."COL01" as integer) as varchar(8)) from tb1 ; IDAA V7 result: 1 -- ## ## IDAA V5 and Db2 result as expected: 1 -------- 12345678 87654321
Local fix
n/a
Problem summary
**************************************************************** * USERS AFFECTED: All Db2 11/12 for z/OS users who use IBM * * Db2 Analytics Accelerator V7. * **************************************************************** * PROBLEM DESCRIPTION: Incorrect output might be returned when * * offloading a query with mulitple CAST * * functions to IBM Db2 Analytics * * Accelerator V7. * **************************************************************** * RECOMMENDATION: Apply corrective PTF when available. * **************************************************************** When offloading a query with multiple levels of CAST functions to IBM Db2 Analytics Accelerator V7, incorrect output might occur. The incorrect output occurs when the source of the inner CAST function is DECIMAL, and the target of the upper CAST function is CHAR/VARCHAR. For example: create table tb1 ( col01 decimal ( 8 , 0 ) ); set current query acceleration = all; select cast(cast("TB1"."COL01" as integer) as varchar(8)) from tb1 for fetch only; Additional Keywords: IDAAV7R1/K SQLCAST SQLDECIMAL SQLCHAR SQLVARCHAR SQLINCORR SQLINCORROUT INCORROUT DB2INCORR/K
Problem conclusion
Queries with multiple CAST functions on decimal data type are now able to be successfully offloaded to IBM Db2 Analytics Accelerator V7.
Temporary fix
********* * HIPER * *********
Comments
APAR Information
APAR number
PH12094
Reported component name
DB2 OS/390 & Z/
Reported component ID
5740XYR00
Reported release
B10
Status
CLOSED PER
PE
NoPE
HIPER
YesHIPER
Special Attention
NoSpecatt / Xsystem
Submitted date
2019-05-15
Closed date
2019-06-13
Last modified date
2019-07-01
APAR is sysrouted FROM one or more of the following:
APAR is sysrouted TO one or more of the following:
UI63647 UI63648
Modules/Macros
DSNXOBAQ
Fix information
Fixed component name
DB2 OS/390 & Z/
Fixed component ID
5740XYR00
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.
[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSEPEK","label":"Db2 for z\/OS"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"11.0","Edition":"","Line of Business":{"code":"LOB10","label":"Data and AI"}},{"Business Unit":{"code":"BU054","label":"Systems w\/TPS"},"Product":{"code":"SG19M","label":"APARs - z\/OS environment"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"11.0","Edition":"","Line of Business":{"code":"","label":""}}]
Document Information
Modified date:
01 July 2019