IBM Support

PI82022: ABEND04E AT DSNXUTL:M100 WHEN A QUERY WAS EXECUTED USING THE JSON_VAL FUNCTION

A fix is available

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • ABEND04E at DSNXUTL:M100 when a query was executed using the
    JSON_VAL function. In the problem query, JSON_VAL's result type
    is set to 's:', but length is ommitted
    

Local fix

  • specify the missing length in JSON_VAL function
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * All DB2 V12 for z/OS users of an SQL                         *
    * statement containing a JSON_VAL function                     *
    * whose result type is VARCHAR, or VARCHAR                     *
    * FOR BIT DATA, but the length is omitted.                     *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * Abend04E RC00E70005 at DSNXUTL M100                          *
    * can occur for an SQL statement                               *
    * satisfying all of the following                              *
    * conditions:                                                  *
    * 1. It contains a JSON_VAL function                           *
    *    whose result type is VARCHAR, or                          *
    *    VARCHAR FOR BIT DATA.                                     *
    * 2. The length is omitted.                                    *
    *                                                              *
    * After application of this PTF,                               *
    * SQLCODE -171 will be issued                                  *
    * instead of ABEND04E.                                         *
    ****************************************************************
    * RECOMMENDATION:                                              *
    * Apply corrective PTF when available                          *
    ****************************************************************
    An example is shown below:
    
    CREATE TABLE TJ(CUSTOMERDATA BLOB(1000),
                    C2 VARCHAR(8), C3 VARCHAR(8));
    
    SELECT JSON_VAL(CUSTOMERDATA,'Customer.name', 'b:') as "Name",
           JSON_VAL(CUSTOMERDATA,'Customer.phone', 's:') as "Phone"
    FROM  TJ;
    
    DB2 did not correctly process the aforementioned SQL statement
    and resulted in ABEND04E RC000E70005 at DSNXUTL M100.
    
    After application of this PTF, SQLCODE -171 will be issued
    instead of ABEND04E.
    

Problem conclusion

  • DB2 has been modified to correctly process the SQL statement.
    
    Additional Keywords: JSON
    

Temporary fix

Comments

APAR Information

  • APAR number

    PI82022

  • 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-05-24

  • Closed date

    2017-06-28

  • Last modified date

    2017-08-02

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

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

    PI82852 UI48390

Modules/Macros

  • DSNXOBFA
    

Fix information

  • Fixed component name

    DB2 OS/390 & Z/

  • Fixed component ID

    5740XYR00

Applicable component levels

  • RC10 PSY UI48390

       UP17/07/14 P F707

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 August 2017