A fix is available
APAR status
Closed as program error.
Error description
ABEND04E RC00E20018 at DSNSLD4 DSNSTKGG OFFSET0B98 (caller is DSNXOMTX) happens when a SQL contains a HAVING clause and huge number of other predicates. Additional keywords: SQLHAVING
Local fix
N/A
Problem summary
**************************************************************** * USERS AFFECTED: All Db2 11 and 12 for z/OS users of an SQL * * statement containing a simple predicate in * * the having clause and huge number of other * * predicates. * **************************************************************** * PROBLEM DESCRIPTION: ABEND04E RC00E20018 at the location * * DSNSLD4 DSNSTKGG OFFSET0B98 may happen * * for an SQL statement containing a * * simple predicate in the HAVING clause * * and huge number of other predicates. * **************************************************************** * RECOMMENDATION: * **************************************************************** An example SQL statement is shown below: SELECT C1, COUNT(C2) FROM T1 WHERE C1 = 1 OR C1 = 2 OR C1 = 3 ... OR C1 = 99999 GROUP BY C1 HAVING COUNT(C2) > 8 AND C1 > 2 ; Db2 incorrectly moved the simple predicate 'C1 > 2' from HAVING to WHERE clause thus caused the abend.
Problem conclusion
Db2 has been modified to correctly process the aforementioned SQL statement. Additional keywords: SQLHAVING SQLWHERE
Temporary fix
Comments
APAR Information
APAR number
PI96885
Reported component name
DB2 OS/390 & Z/
Reported component ID
5740XYR00
Reported release
B10
Status
CLOSED PER
PE
NoPE
HIPER
NoHIPER
Special Attention
NoSpecatt / Xsystem
Submitted date
2018-04-17
Closed date
2018-05-29
Last modified date
2018-07-02
APAR is sysrouted FROM one or more of the following:
APAR is sysrouted TO one or more of the following:
UI56153 UI56154
Modules/Macros
DSNXOMTX
Fix information
Fixed component name
DB2 OS/390 & Z/
Fixed component ID
5740XYR00
Applicable component levels
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":"11.0","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":"11.0","Edition":"","Line of Business":{"code":"","label":""}}]
Document Information
Modified date:
02 July 2018