PM71757: COBOL XML GENERATE MAY PRODUCE INCORRECT OUTPUT IF INVALID CHARACTERS ARE PRESENT.

A fix is available

Subscribe

You can track all active APARs for this component.

APAR status

  • Closed as program error.

Error description

  • When invalid characters are present in an attribute
    "hex." may be incorrectly is added to the end of element tag.
    In one case, the last item is x'00'.
    The generated end-tag is invalid: </hex.DATEX> instead of
    </DATEX>.
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED: Users of Enterprise COBOL Version 4 who use  *
    *                 the verb XML GENERATE with the phrase WITH   *
    *                 ATTRIBUTES and the data contains invalid XML *
    *                 characters.                                  *
    *                                                              *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    *                      An invalid XML document is produced.    *
    *                      The END OF ELEMENT tag for an element   *
    *                      that contains XML attributes with       *
    *                      invalid data may incorrectly be         *
    *                      prefixed with "hex." .                  *
    *                                                              *
    *                      For Example:                            *
    *                                                              *
    *                       01 G.                                  *
    *                          10 B   PIC X(1).                    *
    *                       01 GENOUT PIC X(80).                   *
    *                                                              *
    *                       MOVE X'00' TO B                        *
    *                       XML GENERATE GENOUT FROM G WITH        *
    *                                    ATTRIBUTES                *
    *                                                              *
    *                      Produces:                               *
    *                        <G hex.B="00"></hex.G>                *
    *                      but should produce                      *
    *                        <G hex.B="00"></G>                    *
    *                                                              *
    *                                                              *
    ****************************************************************
    * RECOMMENDATION: Apply the provided PTF.                      *
    *                                                              *
    ****************************************************************
    The XML GENERATE statement was incorrectly setting a flag to
    prefix the END OF ELEMENT tag with "hex." when the invalid data
    was in ATTRIBUTE CONTENT. The flag should only be set when the
    invalid data is in ELEMENT CONTENT.
    

Problem conclusion

  • The XML GENERATE statement is corrected to not append "hex."
    to the END OF ELEMENT tag when invalid data is only in
    ATTRIBUTE CONTENT.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PM71757

  • Reported component name

    LE COBOL LIB

  • Reported component ID

    568819802

  • Reported release

    780

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2012-08-28

  • Closed date

    2012-09-10

  • Last modified date

    2012-10-01

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

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

    UK81665 UK81666 UK81667

Modules/Macros

  • IGZCHXP
    

Fix information

  • Fixed component name

    LE COBOL LIB

  • Fixed component ID

    568819802

Applicable component levels

  • R760 PSY UK81665

       UP12/09/12 P F209

  • R770 PSY UK81666

       UP12/09/12 P F209

  • R780 PSY UK81667

       UP12/09/12 P F209

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.



Rate this page:

(0 users)Average rating

Document information


More support for:

z/OS family

Software version:

7.8

Operating system(s):

z/OS

Reference #:

PM71757

Modified date:

2012-10-01

Translate my page

Machine Translation

Content navigation