IBM Support

PI07336: COMPARE GENERATES INCORRECT SYNTAX ALTERING A GLOBAL TABLE SQLCODE= -628 ADB5185E

A fix is available

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • The DB2 Administration Tool for z/OS Change Management function
    generates msg ADB5184E SQLCODE = -628 importing a change file
    altering a Global Temporary Table with a Foreign Key.
    ADB5185E The run is ending due to errors.
    ADBTEP2 retcode= 8
    SQLCODEN628
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED: Users of the DB2 Object Comparison Tool      *
    *                 for z/OS who include Created Global          *
    *                 Temporary Tables in the compare process.     *
    ****************************************************************
    * PROBLEM DESCRIPTION: For a Created Global Temporary Table,   *
    *                      a column is not allowed to be defined   *
    *                      as NOT NULL WITH DEFAULT.  When this    *
    *                      invalid definition is contained in the  *
    *                      source DDL file for a new column        *
    *                      which is to be appended to the          *
    *                      target, Compare generates an invalid    *
    *                      ALTER statement which causes a          *
    *                      SQLCODE=-628 / SQLCODEN628 during the   *
    *                      APPLY. The syntax error should be       *
    *                      detected by Validate before the         *
    *                      apply.                                  *
    *                                                              *
    *                      Example of the incorrect statement      *
    *                      generated by Compare:                   *
    *                                                              *
    *                      ALTER TABLE >CGTT_name< ADD             *
    *                      >col_name< >col_type< NOT NULL          *
    *                      WITH DEFAULT WITH DEFAULT NULL;         *
    *                                                              *
    *                      SQL Error -628 occurs during apply:     *
    *                                                              *
    *                      DSNT408I SQLCODE = -628, ERROR:         *
    *                      THE CLAUSES ARE MUTUALLY EXCLUSIVE      *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    For Created Global Temporary Table, a column is not allowed to
    be defined as NOT NULL WITH DEFAULT.  When this invalid
    definition is contained in the source DDL file for a new column
    which is to be appended to the target, Compare generates
    invalid ALTER statement which causes a SQLCODE=-628 /
    SQLCODEN628 during the APPLY.
    

Problem conclusion

  • Problem has been resolved.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PI07336

  • Reported component name

    DB2 ADMIN TOOL

  • Reported component ID

    568851500

  • Reported release

    A20

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2013-12-03

  • Closed date

    2014-01-28

  • Last modified date

    2014-02-05

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

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

Modules/Macros

  •    ADB2CMT  ADB2DEP  ADB2WVL  ADB3000
    

Fix information

  • Fixed component name

    DB2 ADMIN TOOL

  • Fixed component ID

    568851500

Applicable component levels

  • RA20 PSY UI14594

       UP14/01/30 P F401

  • RB10 PSY UI14595

       UP14/01/30 P F401

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.

[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSCVQTD","label":"IBM Db2 Administration Tool for z\/OS"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"10.2.0","Edition":"","Line of Business":{"code":"LOB10","label":"Data and AI"}}]

Document Information

Modified date:
05 February 2014