IBM Support

PI85720: ABEND04E RC00E72058 DSNXSMRG P060 OCCURRED ON A QUERY WITH SELECT DISTINCT AND FETCH FIRST

A fix is available

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • ABEND04E RC00E72058 DSNXSMRG P060 occurred on a query with
    SELECT DISTINCT and FETCH FIRST
    

Local fix

  • N/A
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * All DB2 12 for z/OS users of queries that                    *
    * contain either a SELECT DISTINCT or GROUP                    *
    * BY and a FETCH FIRST or OFFSET clause.                       *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * An ABEND04E RC00E72058 can occur at                          *
    * DSNXSMRG P060 when processing a query                        *
    * that contains a SELECT DISTINCT or                           *
    * GROUP BY and a FETCH FIRST or OFFSET                         *
    * clause.                                                      *
    ****************************************************************
    * RECOMMENDATION:                                              *
    * Apply corrective PTF when available                          *
    ****************************************************************
    An ABEND04E RC00E72058 can occur at DSNXSMRG P060 when
    attempting to process a query with either a SELECT DISTINCT or
    GROUP BY and a FETCH FIRST or OFFSET clause.
    
    This problem can occur when SORT can't use the optimized FETCH
    FIRST logic because the size of the data and the number of rows
    is larger than MAXSORT_IN_MEMORY. If sort was able to use
    in-memory, all of the data could fit within a single sort tree
    which it does.
    
    However, sort didn't calculate one of the variables correctly
    causing an error in the calculation during the merge phase
    which leads to the reported abend.
    

Problem conclusion

  • DB2 has been modified to calculate the variable correctly in
    order to avoid the possible abend.
    
    Additional keywords: SQLFETCHFIRST SQLOFFSET SQLGROUPBY
                         SQLDISTINCT
    

Temporary fix

Comments

APAR Information

  • APAR number

    PI85720

  • Reported component name

    DB2 OS/390 & Z/

  • Reported component ID

    5740XYR00

  • Reported release

    C10

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2017-08-12

  • Closed date

    2017-09-05

  • Last modified date

    2017-10-02

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

    UI50083 UI50084

Modules/Macros

  • DSNXSTSG
    

Fix information

  • Fixed component name

    DB2 OS/390 & Z/

  • Fixed component ID

    5740XYR00

Applicable component levels

  • RC10 PSY UI50083

       UP17/09/19 P F709

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":"12.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":"12.0","Edition":"","Line of Business":{"code":"","label":""}}]

Document Information

Modified date:
02 October 2017