A fix is available
APAR status
Closed as program error.
Error description
The failure occurs on a SELECT statement with XMLQUERY, UNION ALL and ORDER BY.
Local fix
No Work Around
Problem summary
**************************************************************** * USERS AFFECTED: All DB2 users who use order by with * * union all and XML functions. * **************************************************************** * PROBLEM DESCRIPTION: An ABEND0C4 at dsnnxml.dsnnoget * * could occur when an SELECT * * statement contains union all with * * order by and the select list of * * one union all branch contains an * * XML function. * **************************************************************** * RECOMMENDATION: * **************************************************************** When an SELECT statement contains top-level union all with order by and the select list of one union all branch contains an XML function, an ABEND0C4 at dsnnxml.dsnnoget could occur because DB2 freed the storage for the XML function result too earlier. The following is an example of the failed queries: SELECT c1, xmlQuery('$c/o/a/l/e/o' passing xmlcol as "c") as vertrag from T1 UNION ALL select C1, xmlQuery('$c/o/a/l/e/o' passing xmlcol as "c") as vertrag from T2 order by 1
Problem conclusion
DB2 is fixed to manage the storage for XML functions correctly for union all with order by queries. Additional keywords: SQLXML SQLUNION
Temporary fix
Comments
APAR Information
APAR number
PM16546
Reported component name
DB2 OS/390 & Z/
Reported component ID
5740XYR00
Reported release
910
Status
CLOSED PER
PE
NoPE
HIPER
NoHIPER
Special Attention
NoSpecatt
Submitted date
2010-06-15
Closed date
2010-08-19
Last modified date
2010-10-01
APAR is sysrouted FROM one or more of the following:
APAR is sysrouted TO one or more of the following:
UK59931
Modules/Macros
DSNXOOS2
Fix information
Fixed component name
DB2 OS/390 & Z/
Fixed component ID
5740XYR00
Applicable component levels
R910 PSY UK59931
UP10/09/08 P F009
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":"9.1","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":"9.1","Edition":"","Line of Business":{"code":"","label":""}}]
Document Information
Modified date:
01 October 2010