A fix is available
APAR status
Closed as program error.
Error description
An SQLCODE404 (-404) occurs in DB2 9 for a query that works in DB2 V8. The pared down query looks like this: SELECT DISTINCT COL1 FROM TABLE1 UNION SELECT DISTINCT COL1 FROM TABLE1 ; There is a FIELDPROC defined on COL1. Without the FIELDPROC, the query returns the expected results. Adding a UNION ALL also works correctly. Remving DISTINCT also produces the correct results. DB2INCORR/K
Local fix
Problem summary
**************************************************************** * USERS AFFECTED: ALL DB2 R910 users using union/fieldproc. * **************************************************************** * PROBLEM DESCRIPTION: incorrect output may occur when * * query contains top level union * * and fieldprocs. * **************************************************************** * RECOMMENDATION: * **************************************************************** Incorrect output may occur when query contains top level union and fieldprocs. Following is an example of such failing scenario: SELECT DISTINCT C1 FROM T1 UNION SELECT DISTINCT C1 FROM T2 There is fieldproc defined on T1.C1 and T2.C1
Problem conclusion
DB2 is fixed to process fieldproc info for union correctly. Additional keywords: SQLUNION SQLFIELDPROC
Temporary fix
********* * HIPER * *********
Comments
APAR Information
APAR number
PK85353
Reported component name
DB2 OS/390 & Z/
Reported component ID
5740XYR00
Reported release
910
Status
CLOSED PER
PE
NoPE
HIPER
YesHIPER
Special Attention
NoSpecatt
Submitted date
2009-04-24
Closed date
2009-06-12
Last modified date
2011-05-15
APAR is sysrouted FROM one or more of the following:
APAR is sysrouted TO one or more of the following:
UK47416
Modules/Macros
DSNXOSOB
Fix information
Fixed component name
DB2 OS/390 & Z/
Fixed component ID
5740XYR00
Applicable component levels
R910 PSY UK47416
UP09/06/30 P F906
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:
15 May 2011