IBM Support

PM71193: Rational Developer for System z (RDz) COBOL and PLI-LS2XML conversion needs to escape CR


You can track all active APARs for this component.


APAR status

  • Closed as fixed if next.

Error description

  • Rational Developer for System z (RDz)
    Due to a carriage
    return (CR) character will be converted to a line feed (LF)
    character when parsing an XML; a CR LF will be parsed to a
    single LF.
    If a PLI application programer adds a CR or CR LF to a response
    field in the application code, the converter running in ICON
    converts a CR or CR LF to UTF-8 without any escaping.  Due to
    the XML parsing rule above an XML parser converts a CR or CR LF
    to a single LF. As a result the web service client application
    will see only a LF but not the original CR or CR LF.
    Therefore, the CR character should be escaped using ?#xD;
    (similar to ?, ?, ' and ') by the generated XML converter in the
    LS2XML phase.
    This problem occurs in COBOL-LS2XML environment also.

Local fix

Problem summary

  • RD/z COBOL and PL/I Compiled LS2XML converters do not escape CR
    (0x0D) characters when generating XML.
    RD/z COBOL and PL/I Compiled LS2XML converters have been
    corrected to escape CR characters as 
 when generating XML
    element and attribute character content.  Note: CR escaping
    applies only to XML elements and attributes for which the facet
    <whiteSpace="preserve"/> is in effect.
    This APAR is being closed FIN with concurrence from the
    submitting customer. This means that a fix to this APAR is
    expected to be delivered from IBM in a release which is being
    developed at the time that the APAR was closed. The latest
    release of the product to exit development at the time this
    APAR was closed was: Rational Developer for System z V8.5.1.

Problem conclusion

Temporary fix


APAR Information

  • APAR number


  • Reported component name


  • Reported component ID


  • Reported release


  • Status


  • PE




  • Special Attention


  • Submitted date


  • Closed date


  • Last modified date


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

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

Fix information

Applicable component levels

  • R850 PSY


[{"Business Unit":{"code":"BU048","label":"IBM Software"}, "Product":{"code":"SSQ2R2","label":"Rational Developer for z Systems"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"8.5","Edition":""}]

Document Information

Modified date:
26 November 2012