IBM Support

PH24430: Unnecessary conversion to packed decimal and back to binary when moving from COMP-5 doubleword to doubleword

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as fixed if next.

Error description

  • When moving from a PIC 9(18) COMP-5 (unsigned doubleword native
    binary) item to another item of the same attributes, the
    compiler generates a lengthy conversion to packed decimal and
    back to binary. While the results are correct, this holdover
    from earlier compilers is redundant for native binary and could
    be replaced by a simple direct move for better performance.
    
    This conversion process may also lead to intermediate value
    truncation taking place, which in contexts where hardware
    overflow is enabled can lead to noticeably poor performance at
    ARCH(12), due to the runtime needing to ignore the overflow per
    COBOL semantics.
    

Local fix

  • Compile at ARCH(11)
    

Problem summary

  • The compiler will updated to avoid generating unecessary
    conversions for moves involving COMP-5 senders and receivers
    that have a decimal precision of 0.
    

Problem conclusion

Temporary fix

Comments

APAR Information

  • APAR number

    PH24430

  • Reported component name

    ENT COBOL FOR Z

  • Reported component ID

    5655EC600

  • Reported release

    620

  • Status

    CLOSED FIN

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2020-04-15

  • Closed date

    2022-07-27

  • Last modified date

    2022-09-08

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

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

    PH25371

Fix information

Applicable component levels

[{"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":"620","Line of Business":{"code":"LOB35","label":"Mainframe SW"}}]

Document Information

Modified date:
12 December 2023