A fix is available
APAR status
Closed as program error.
Error description
Offloading a query to IBM DB2 ANALYTICS ACCELERATOR V7 using CAS T of DATE or TIME value does return the result always in ISO reg ardless if DSNHDECP DATE TIME VALUE is different. E.g. HDEPC DAT E TIME EUR return from IDAA always as ISO. Sample of incorrout: SELECT CAST(DATE(current timestamp) AS CHAR(10)) FROM sysibm.sysdummy1 with ur ; ==> 2021/02/26 instead if EUR as set in HDECP 26.02.2021.
Local fix
Change: SELECT CAST(DATE(current timestamp) AS CHAR(10)) FROM sysibm.sysdummy1 with ur ; to SELECT CHAR(DATE(CURRENT TIMESTAMP),EUR) FROM sysibm.sysdummy1 with ur ;
Problem summary
**************************************************************** * USERS AFFECTED: * * All Db2 12 for z/OS users who use IBM Db2 * * Analytics Accelerator V7. * **************************************************************** * PROBLEM DESCRIPTION: * * Possible incorrect output when * * offloading query with VARCHAR() or * * CAST() to IBM Db2 Analytics * * Accelerator V7 and the Db2z system * * DATE or TIME FORMAT is * * EUR/USA/JIS/LOCAL. * **************************************************************** * RECOMMENDATION: * * Apply corrective PTF when available * **************************************************************** Incorrect output due to inappropriate DATE or TIME format conversion when offloading query to IBM Db2 Analytics Accelerator V7 under the following conditions: when the query offloaded contains VARCHAR() scalar function with: (1) only one parameter and its data type is DATE or TIME. (2) Db2z system DATE or TIME format is EUR/USA/JIS. when the query offloaded contains CAST(parm AS CHAR/VARCHAR) (1) the first parameter data type is DATE or TIME. (2) Db2z system DATE or TIME format is EUR/USA/JIS/LOCAL. Additional Keywords: IDAAV7R1/K IDAAV7R5/K SQLINCORR SQLINCORROUT INCORROUT DB2INCORR/K SQLBIF SQLFUNCTION
Problem conclusion
The expected DATE or TIME format will be returned for query with CHAR() scalar function or CAST() offloaded to IBM Db2 Analytics Accelerator V7.
Temporary fix
Comments
APAR Information
APAR number
PH34873
Reported component name
DB2 OS/390 & Z/
Reported component ID
5740XYR00
Reported release
C10
Status
CLOSED PER
PE
NoPE
HIPER
NoHIPER
Special Attention
NoSpecatt / Xsystem
Submitted date
2021-02-26
Closed date
2021-03-30
Last modified date
2021-05-03
APAR is sysrouted FROM one or more of the following:
APAR is sysrouted TO one or more of the following:
UI74683
Modules/Macros
DSNXOBAQ DSNXOBAS
Fix information
Fixed component name
DB2 OS/390 & Z/
Fixed component ID
5740XYR00
Applicable component levels
RC10 PSY UI74683
UP21/04/08 P F104
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":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSEPEK","label":"Db2 for z\/OS"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"12.0"}]
Document Information
Modified date:
04 May 2021