A fix is available
APAR status
Closed as program error.
Error description
In DB2 HPU for z/OS processing. Rows missing from the unloaded data where a logical unload involves an unsupported SQL statement starting with a common-table-expression followed by a fullselect with UNION. Only the part of the SQL statement before the first UNION keyword of the fullselect is passed on to DB2. For instance, with the following SQL statement: WITH MYTBL (MYCOL1) AS ( SELECT 'MYCOL1-ROW1' FROM SYSIBM.SYSDUMMY1 ) SELECT MYCOL1 !! '-FIRST' AS SINGLE_COLUMN FROM MYTBL UNION SELECT MYCOL1 !! '-SECOND' AS SINGLE_COLUMN FROM MYTBL OUTDDN OUTPUT FORMAT DSNTIAUL the statement passed on to DB2 is: WITH MYTBL (MYCOL1) AS ( SELECT 'MYCOL1-ROW1' FROM SYSIBM.SYSDUMMY1 ) SELECT MYCOL1 !! '-FIRST' AS SINGLE_COLUMN FROM MYTBL Additional reference: PB10913
Local fix
Problem summary
**************************************************************** * USERS AFFECTED: Users of DB2 High Performance Unload. * **************************************************************** * PROBLEM DESCRIPTION: Rows missing from the unloaded data * * where a logical unload involves an * * unsupported SQL statement starting * * with a common-table-expression * * followed by a fullselect with UNION. * * Only the part of the SQL statement * * before the first UNION keyword of the * * fullselect is passed on to DB2. * * For instance, with the following SQL * * statement : * * * * WITH * * MYTBL (MYCOL1) AS * * ( * * SELECT 'MYCOL1-ROW1' FROM * * SYSIBM.SYSDUMMY1 * * ) * * SELECT * * MYCOL1 !! '-FIRST' AS SINGLE_COLUMN * * FROM MYTBL * * UNION * * SELECT * * MYCOL1 !! '-SECOND' AS * * SINGLE_COLUMN * * FROM MYTBL * * OUTDDN OUTPUT * * FORMAT DSNTIAUL * * * * the statement passed on to DB2 is: * * * * WITH * * MYTBL (MYCOL1) AS * * ( * * SELECT 'MYCOL1-ROW1' FROM * * SYSIBM.SYSDUMMY1 * * ) * * SELECT * * MYCOL1 !! '-FIRST' AS SINGLE_COLUMN * * FROM MYTBL * * * * PB 10913 * **************************************************************** * RECOMMENDATION: APPLY the PTF. * **************************************************************** inzhyacc module was fixed to concatenate all the parts of the fullselect.
Problem conclusion
APPLY the PTF.
Temporary fix
Comments
APAR Information
APAR number
PM24566
Reported component name
DB2 HI PERF UNL
Reported component ID
5697F4400
Reported release
310
Status
CLOSED PER
PE
NoPE
HIPER
NoHIPER
Special Attention
NoSpecatt
Submitted date
2010-10-14
Closed date
2010-11-18
Last modified date
2010-12-02
APAR is sysrouted FROM one or more of the following:
APAR is sysrouted TO one or more of the following:
UK62315 UK62316 UK62317
Modules/Macros
INZUTILK
Fix information
Fixed component name
DB2 HI PERF UNL
Fixed component ID
5697F4400
Applicable component levels
R310 PSY UK62315
UP10/11/24 P F011
R320 PSY UK62316
UP10/11/24 P F011
R410 PSY UK62317
UP10/11/24 P F011
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":"SSAUUV","label":"IBM Db2 High Performance Unload for z\/OS"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"310","Edition":"","Line of Business":{"code":"LOB10","label":"Data and AI"}}]
Document Information
Modified date:
12 February 2021