IBM Support

PH58489: JSON PARSE ON JSON ARRAY WITH A NULL VALUE EMITS MESSAGE IGZ0339W

A fix is available

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • When a program uses JSON PARSE with NULL value(s) in the JSON
    string, a warning is issued instead of an informational message.
    

Local fix

  • N/A
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED: Users of Enterprise COBOL 5 and later        *
    *                 releases running programs using JSON PARSE   *
    *                 with NULL value(s) in the JSON string.       *
    ****************************************************************
    * PROBLEM DESCRIPTION: When the NULL value is assigned to      *
    *                      the root of an array in a JSON          *
    *                      document and this document is passed    *
    *                      to JSON PARSE, warning message          *
    *                      IGZ0339W is incorrectly emitted         *
    *                      during program execution.               *
    *                                                              *
    *                      Example document input to JSON PARSE:   *
    *                                                              *
    *                      JSON Document: {"GRP1":{"MYLIST":null}} *
    *                                                              *
    *                      COBOL data:                             *
    *                      1 GRP1.                                 *
    *                        05 MYLIST OCCURS 5 TIMES PIC X(10).   *
    ****************************************************************
    * RECOMMENDATION: Install the provided PTF.                    *
    ****************************************************************
    There was a logic error in the COBOL runtime routine for JSON
    PARSE that expected an opening square bracket "[" only when
    parsing JSON array which caused incorrect Run-time message
    IGZ0339W to be emitted during program execution. JSON parsing
    ended when "null" was  assigned to the root of an array.
    Assigning "null" to the root of an array implies that all
    the data-items in the array are null.
    
    COB0501T/K COB0502T/K COB0601T/K COB0602T/K
    COB0603T/K COB0604T/K
    

Problem conclusion

  • The problem in the COBOL Runtime has been corrected. The
    problem was resolved by improving the logic used to determine
    the validity of the JSON string in JSON PARSE. This would
    ensure that "null" can be assigned to the root of an array
    and Run-time message IGZ0326I or IGZ0327I is emitted during .
    program execution.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PH58489

  • Reported component name

    ENT COBOL FOR Z

  • Reported component ID

    5655EC600

  • Reported release

    7E0

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2023-11-30

  • Closed date

    2023-12-07

  • Last modified date

    2024-01-02

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

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

Modules/Macros

  • IGZBALCT IGZCEV4  IGZCJNI2 IGZCMGEN IGZCMGUE IGZEDCCT IGZIBMCT
    IGZIGZCT IGZLLIBV IGZX1XPQ IGZXAPI  IGZXCA31 IGZXCDA  IGZXD24
    IGZXDMR  IGZXJNI2 IGZXLPIO IGZXLPKA IGZXLPKB IGZXLPKC IGZXLPKD
    IGZXLPKE IGZXLPKF IGZXLPKG IGZXPK2
    

Fix information

  • Fixed component name

    LE ENT COBOL LI

  • Fixed component ID

    568819812

Applicable component levels

  • R7C0 PSY UI94783

       UP23/12/14 P F312

  • R7D0 PSY UI94786

       UP23/12/14 P F312

  • R7E0 PSY UI94789

       UP23/12/14 P F312

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":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SS6SG3","label":"Enterprise COBOL for z\/OS"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"7E0","Line of Business":{"code":"LOB35","label":"Mainframe SW"}}]

Document Information

Modified date:
02 January 2024