A fix is available
APAR status
Closed as program error.
Error description
incorrect out when it's index only access and the index is index on expression, and there is sargable predicate which is neither matching nor screening. . Additional keyword: DB2INCORR/K
Local fix
N/A
Problem summary
**************************************************************** * USERS AFFECTED: All DB2 V9 users when running query with * * index on expression * **************************************************************** * PROBLEM DESCRIPTION: (1) Incorrect output may be occurred * * when index on expression is chosen and * * all the columns that referenced in the * * query are all from the index key * * columns. * * (2) Abend 04E-00E700058 at DSNXO1S: * * P008 may be occurred when index on * * expression is picked and multiple * * index ORing access is chosen. * **************************************************************** * RECOMMENDATION: * **************************************************************** (1) Incorrect output may be occurred when index on expression is chosen and all the columns that referenced in the query are all from the index key columns. The following query is an example of this case. CREATE INDEX I1 ON T1(LOWER(C1),C2,C3) SELECT LOWER(C1) FROM T1 WHERE (C3=1 AND C2<>0 AND(LOWER (C1) LIKE '103%' )); (2) Abend 04E-00E700058 at DSNXO1S: P008 may be occurred when index on expression is picked and multiple index ORing access is chosen. The following query is an example of this case. CREATE INDEX I1 ON T1(LOWER(C1),C2) CREATE INDEX I2 ON T1(C1,C2) SELECT LOWER(C1), C2 FROM T1 WHERE (C2=1 AND (LOWER (C1) LIKE '103%' )) OR (C2=1 AND C1='ABCD')
Problem conclusion
The bindtime code in DB2 is modified to correct the failing condition. Additional keyword: SQLINDEXONEXP INCORROUT ABEND04E
Temporary fix
********* * HIPER * *********
Comments
APAR Information
APAR number
PK99847
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-10-28
Closed date
2009-12-09
Last modified date
2011-05-10
APAR is sysrouted FROM one or more of the following:
APAR is sysrouted TO one or more of the following:
UK52749
Modules/Macros
DSNXOBM DSNXOGA DSNXOMIS DSNXO1S
Fix information
Fixed component name
DB2 OS/390 & Z/
Fixed component ID
5740XYR00
Applicable component levels
R910 PSY UK52749
UP10/01/21 P F001
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:
10 May 2011