IBM Support

PI54586: WITH XMLPARSE(COMPAT), AN EMPTY ATTRIBUTE VALUE INCORRECTLY GENERATES A SECOND ATTRIBUTE-NAME EVENT

A fix is available

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • When using XMLPARSE(COMPAT), an empty attribute like ATTR5=""
    generates two ATTRIBUTE-NAME events with XML-TEXT equal to the
    attribute name, rather than an ATTRIBUTE-NAME event followed by
    an ATTRIBUTE-CHARACTERS event with an empty XML-TEXT. For
    example, the XML fragment
    
        <ELEM5 ATTR5=""/>
    
    generates the event sequence:
    
        XML-EVENT           XML-TEXT
        ----------------    --------
        START-OF-ELEMENT    ELEM5
        ATTRIBUTE-NAME      ATTR5
        ATTRIBUTE-NAME      ATTR5  <-- in error
        END-OF-ELEMENT      ELEM5
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED: User of Enterprise COBOL z/OS V5.2 running   *
    *                 programs compiled with the XMLPARSE(COMPAT)  *
    *                 compiler option, and that use XML PARSE      *
    *                 statements to parse an XML document that     *
    *                 contains an empty attribute.                 *
    *                                                              *
    ****************************************************************
    * PROBLEM DESCRIPTION: Incorrect output: Two ATTRIBUTE-NAME    *
    *                      events with XML-TEXT equal to the       *
    *                      attribute name were received, rather    *
    *                      than an ATTRIBUTE-NAME event followed   *
    *                      by an ATTRIBUTE-CHARACTERS event with   *
    *                      an empty XML-TEXT as expected.          *
    *                                                              *
    ****************************************************************
    * RECOMMENDATION: Apply provided service.                      *
    ****************************************************************
    The runtime library was not correctly parsing the empty
    attribute.
    
    FIXCAT keyword:  COB0501T/K   COB0502T/K
    

Problem conclusion

  • The parsing of on empty attribute during XML PARSE processing
    has been corrected.
    
    FIXCAT keyword:  COB0501T/K   COB0502T/K
    

Temporary fix

Comments

APAR Information

  • APAR number

    PI54586

  • Reported component name

    LE ENT COBOL LI

  • Reported component ID

    568819812

  • Reported release

    790

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2015-12-22

  • Closed date

    2016-01-22

  • Last modified date

    2016-02-01

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

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

    UI34683 UI34684 UI34685

Modules/Macros

  • IGZCEV4  IGZLLIBV IGZXAPI  IGZXDMR  IGZXD24
    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

  • R7A0 PSY UI34683

       UP16/01/28 P F601

  • R780 PSY UI34684

       UP16/01/28 P F601

  • R790 PSY UI34685

       UP16/01/28 P F601

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":"BU054","label":"Systems w\/TPS"},"Product":{"code":"SSCVR7X","label":"Runtime"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Line of Business":{"code":"","label":""}}]

Document Information

Modified date:
14 December 2020