IBM Support

PI90110: ABEND04E RC00E70005 DSNXRBND M120 FOR SELECT WITH CASE EXPRESSION FOR A GLOBAL VARIABLE IN UDF

A fix is available

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • ABEND04E RC00E70005 DSNXRBND M120 for SELECT with CASE
    expression for a global variable in UDF
    
    keywords:
    SQLCASE SQLUDF
    

Local fix

  • n/a
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * All Db2 12 for z/OS users of queries that                    *
    * contain a CASE statement with a global                       *
    * variable or a UDF (user-defined function)                    *
    * that will generate a TRUE or FALSE                           *
    * internal runtime structure.                                  *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * An ABEND04E RC00E70005 at DSNXRBND                           *
    * M120 can occur for a query that                              *
    * contains a CASE statement for a                              *
    * global variable or a UDF that will                           *
    * generate a TRUE/FALSE internal                               *
    * runtime structure.                                           *
    ****************************************************************
    * RECOMMENDATION:                                              *
    * Apply corrective PTF when available                          *
    ****************************************************************
    An ABEND04E RC00E70005 at location DSNXRBND M120 can occur for
    a query that contains a CASE statement for a global variable or
    a UDF (user-defined function) that will generate a TRUE/FALSE
    internal runtime structure.
    
    The following example helps to illustrate the problem.
    
    CREATE VARIABLE GVCHAR1 CHAR(1) DEFAULT ''#
    COMMIT#
    SELECT 1, IBMREQD FROM SYSIBM.SYSDUMMY1
    WHERE IBMREQD =
          CASE
            WHEN UPPER(GVCHAR1) = ''
            THEN 'Y'
            ELSE 'N'
          END#
    
    The following row should be returned instead of the abend.
    
    +--------------------------+
    |                | IBMREQD |
    +--------------------------+
    |              1 | Y       |
    +--------------------------+
    

Problem conclusion

  • Db2 has been modified to disable the optimized code for the
    CASE statement for the above scenario which will prevent the
    abend or failure.
    
    Additional Keywords: SQLCASE SQLUDF SQLGLOBALVAR
    

Temporary fix

Comments

APAR Information

  • APAR number

    PI90110

  • 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-11-13

  • Closed date

    2017-11-27

  • Last modified date

    2018-01-03

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

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

    UI52157

Modules/Macros

  • DSNXGCAS
    

Fix information

  • Fixed component name

    DB2 OS/390 & Z/

  • Fixed component ID

    5740XYR00

Applicable component levels

  • RC10 PSY UI52157

       UP17/12/13 P F712

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:
03 January 2018