IBM Support

PH40662: GEN/DDL NOT FORMATTING LARGE CHECK CONSTRAINTS CORRECTLY

A fix is available

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Depending on the format specified, Db2 terminates each line of
    an SQL statement with a line feed character (x'25').  In the
    context of table constraints, GEN or DDL does not process this
    character to break up lines, causing large check constraints to
    print in one continuous line.
    

Local fix

  • n/a
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED: Users of the Db2 Administration Tool for     *
    *                 z/OS Reverse Engineering (GEN) function      *
    ****************************************************************
    * PROBLEM DESCRIPTION: GEN does not process character x'25'    *
    *                      in SYSIBM.SYSCHECKS, resulting in       *
    *                      poorly formatted table constraint DDL.  *
    ****************************************************************
    When a table is created with format SQLPL, Db2 terminates each
    line of an SQL statement with line feed character x'25'.
    
    When generating constraints, GEN does not process this
    character, resulting in poorly formatted table constraint DDL.
    
    Example:
    
    Partial statement sent to Db2:
    CONSTRAINT NOLC
            CHECK (
    TABLE_COLUMN_TEST NOT LIKE '%r%' AND
    TABLE_COLUMN_TEST NOT LIKE '%s%' AND
    TABLE_COLUMN_TEST NOT LIKE '%t% ' AND
    TABLE_COLUMN_TEST NOT LIKE '%u%' AND
    TABLE_COLUMN_TEST NOT LIKE '%v%' AND
    TABLE_COLUMN_TEST NOT LIKE '%w%' AND
    TABLE_COLUMN_TEST NOT LIKE '%x%' AND
    TABLE_COLUMN_TEST NOT LIKE '%y%' AND
    TABLE_COLUMN_TEST NOT LIKE '%z%' )
    
    Generated DDL:      CONSTRAINT NOLC
            CHECK (TABLE_COLUMN_TEST NOT LIKE '%r%' AND
    TABLE_COLUMN_TEST
    NOT LIKE '%s%' AND TABLE_COLUMN_TEST NOT LIKE '%t% ' AND
    TABLE_COLUMN_TEST
    NOT LIKE '%u%' AND TABLE_COLUMN_TEST NOT LIKE '%v%' AND
    TABLE_COLUMN_TE
    ST NOT LIKE '%w%' AND TABLE_COLUMN_TEST NOT LIKE '%x%' AND
    TABLE_COLUMN_
    TEST NOT LIKE '%y%' AND TABLE_COLUMN_TEST NOT LIKE '%z%' )
    

Problem conclusion

  • The problem has been resolved.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PH40662

  • Reported component name

    DB2 ADMIN TOOL

  • Reported component ID

    568851500

  • Reported release

    C10

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2021-09-17

  • Closed date

    2021-10-07

  • Last modified date

    2021-11-01

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

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

    UI77493

Modules/Macros

  • ADB2REG
    

Fix information

  • Fixed component name

    DB2 ADMIN TOOL

  • Fixed component ID

    568851500

Applicable component levels

  • RC10 PSY UI77493

       UP21/10/12 P F110

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":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SSZJXP","label":"DB2 Tools for z\/OS"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"12.1.0"}]

Document Information

Modified date:
02 November 2021