IBM Support

IT25524: THE DB2DCLGN TOOL RETURNS INCORRECT OUTPUT FOR COBOL IN ZOS COMPATIBILITY MODE

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Once user creates table like:
    
    db2 create table DCLGEN_TEST (c05 varchar(10) , c08
    vargraphic(10)) organize by row
    
    and execute the db2dclgn tool:
    
    db2dclgn -d sample -t DCLGEN_TEST -l Cobol -z OS390
    
    
    The output file is:
    
           01 DCLGEN_TEST.
             10 C05.
               49 C05-LEN PIC S9(4) COMP-5.
               49 C05-DAT PIC X(10).
             10 C08.
               49 C08-LEN PIC S9(4) COMP-5.
               49 C08-DAT PIC G(10) DISPLAY-1.
    
    
    In the output above there are two problems:
    - table containing underscore ( _ ) in its name is not converted
    to hyphen ( - )
    - The DAT keyword is specified for VARCHAR and VARGRAPHIC data
    types should be TEXT
    
    
    This APAR change is to correct output to expected one like
    below:
    
           01 DCLGEN-TEST.
             10 C05.
               49 C05-LEN PIC S9(4) COMP-5.
               49 C05-TEXT PIC X(10).
             10 C08.
               49 C08-LEN PIC S9(4) COMP-5.
               49 C08-TEXT PIC G(10) DISPLAY-1.
    

Local fix

  • N/A
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * ALL                                                          *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * See Error Description                                        *
    ****************************************************************
    * RECOMMENDATION:                                              *
    * Upgrade to Db2 Version 11.1 Mod 4 Fix Pack 4 or higher       *
    ****************************************************************
    

Problem conclusion

  • First fixed in Db2 Version 11.1 Mod 4 Fix Pack 4
    

Temporary fix

Comments

APAR Information

  • APAR number

    IT25524

  • Reported component name

    DB2 FOR LUW

  • Reported component ID

    DB2FORLUW

  • Reported release

    B10

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2018-06-28

  • Closed date

    2018-12-23

  • Last modified date

    2018-12-23

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

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

Fix information

  • Fixed component name

    DB2 FOR LUW

  • Fixed component ID

    DB2FORLUW

Applicable component levels

  • RB10 PSN

       UP

[{"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SSEPGG","label":"DB2 for Linux, UNIX and Windows"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"11.1","Edition":"","Line of Business":{"code":"LOB10","label":"Data and AI"}}]

Document Information

Modified date:
23 December 2018