IBM Support

PH70397: ALTER COLUMN ON A BASE TABLE THAT HAS A HISTORY TABLE CAUSES SQLCODE = -20180

A fix is available

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • When attempting to ALTER COLUMN on base table with active
    versioning, run job fails with SQLCODE = -20180.
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED: Users of Db2 Administration Tool for z/OS    *
    *                 and Db2 Object Comparison Tool for z/OS      *
    ****************************************************************
    * PROBLEM DESCRIPTION: Object Compare fails with SQLCODE       *
    *                      -20180 when generating an ALTER         *
    *                      COLUMN SET DEFAULT statement for a      *
    *                      temporal table.                         *
    ****************************************************************
    When Object Comparison Tool is used to generate an ALTER
    COLUMN SET DEFAULT statement for a temporal table, the apply job
    fails with SQLCODE -20180. This error is due to versioning being
    active on the temporal table when the ALTER COLUMN statement is
    executed.
    
    Keyword: SQLN20180 TEMPORAL
    

Problem conclusion

  • The problem has been fixed.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PH70397

  • Reported component name

    DB2 ADMIN TOOL

  • Reported component ID

    568851500

  • Reported release

    D10

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2026-03-04

  • Closed date

    2026-06-15

  • Last modified date

    2026-07-02

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

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

    UO08227

Modules/Macros

  • ADB2CMT
    

Fix information

  • Fixed component name

    DB2 ADMIN TOOL

  • Fixed component ID

    568851500

Applicable component levels

  • RD10 PSY UO08223

       UP26/07/02 P F606

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":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SSZJXP","label":"DB2 Tools for z\/OS"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"D10","Line of Business":{"code":"LOB10","label":"Data and AI"}}]

Document Information

Modified date:
02 July 2026