IBM Support

PH42857: CHANGE DB2 DCLGEN TO USE COMP-5 INSTEAD OF COMP IN COBOL COPYBOOKS FOR SMALLINT , INTEGER , AND BIGINT COLUMNS

A fix is available

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as new function.

Error description

  • Because the SMALLINT (binary) data items are defined as COMP
    instead of COMP-5 for COBOL, it forces the customer to have
    to circumvent errors by making a manual change to the
    DCLGEN copybook for COBOL to change the declaration(s) to
    COMP-5 or to use the TRUNC(BIN) compiler option (which is not
    optimal for performance).
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * All users of DCLGEN (DECLARATIONS                            *
    * GENERATOR) for COBOL programs.                               *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * DCLGEN generates COMP for                                    *
    * SMALLINT, INTEGER and BIGINT columns                         *
    * which doesn't meet COBOL compiler                            *
    * requirement.                                                 *
    ****************************************************************
    * RECOMMENDATION:                                              *
    * Apply corrective PTF when available                          *
    ****************************************************************
    COBOL compiler expects DCLGEN to generate COMP-5 instead
    of COMP for SMALLINT, INTEGER and BIGINT columns, varchar
    column length field, and indicator variables, etc.
    

Problem conclusion

  • DCLGEN is updated to generate COMP-5 for SMALLINT, INTEGER and
    BIGINT columns, varchar column length field, and indicator
    variables, etc.
    Additional Keywords: COBO501T/K COBO502T/K COBO601T/K
                         COBO602T/K COBO603T/K
    

Temporary fix

Comments

APAR Information

  • APAR number

    PH42857

  • Reported component name

    DB2 OS/390 & Z/

  • Reported component ID

    5740XYR00

  • Reported release

    C10

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2021-12-15

  • Closed date

    2022-03-25

  • Last modified date

    2022-05-03

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

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

    UI79893

Modules/Macros

  • DSNECP61
    

Fix information

  • Fixed component name

    DB2 OS/390 & Z/

  • Fixed component ID

    5740XYR00

Applicable component levels

  • RC10 PSY UI79893

       UP22/04/02 P F204

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.

[{"Line of Business":{"code":"LOB10","label":"Data and AI"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSEPEK","label":"DB2 for z\/OS"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"12.0"}]

Document Information

Modified date:
04 May 2022