IBM Support

PM10018: MISSING SEMICOLON FROM ALTER TABLE DROP PRIMARY KEY

A fix is available

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • The DB2 Object Comparison Tool for z/OS created DDL with a
    missing semicolon from an ALTER TABLE DROP PRIMARY KEY:
      ALTER TABLE aaaaaaa.bb_bbb_bbb_bbb
      DROP PRIMARY KEY
      COMMIT ;
    which results in a SQLCODEN104 / SQLCODE -104.
    

Local fix

  • Add the missing semicolon
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED: Users Of DB2 Object Comparison               *
    *                 Tool for z/OS who compare                    *
    *                 partitioned tables and indexes.              *
    ****************************************************************
    * PROBLEM DESCRIPTION: DB2 Object Comparison Tool              *
    *                      generated invalid statements            *
    *                      in the CHG file:                        *
    *                                                              *
    *                      1.Alter table drop primary index        *
    *                        without semicolon                     *
    *                      2.Alter partition ending without        *
    *                        preceding alter table                 *
    *                                                              *
    *                      ALTER TABLE aaaaaaa.bb_bbb_bbb_bbb      *
    *                      DROP PRIMARY KEY COMMIT;                *
    *                      Results in a SQLCODEN104 / SQLCODE -10  *
    ****************************************************************
    * RECOMMENDATION: Apply The PTF.                               *
    ****************************************************************
    DB2 Object Comparison Tool generated invalid
    statements in the CHG file:
    
    1,Alter table drop primary index
      without semicolon
    2.Alter partition ending without
      precediing alter table.
    

Problem conclusion

  • DB2 Object Comparison Tool has been updated to
    generate the correct statements.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PM10018

  • Reported component name

    DB2 OBJECT COMP

  • Reported component ID

    5697G6400

  • Reported release

    720

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2010-03-15

  • Closed date

    2010-08-26

  • Last modified date

    2010-09-02

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

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

Modules/Macros

  •    GOC2CMT
    

Fix information

  • Fixed component name

    DB2 OBJECT COMP

  • Fixed component ID

    5697G6400

Applicable component levels

  • R720 PSY UK60023

       UP10/08/31 P F008

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":"SSAUVH","label":"IBM Db2 Object Comparison Tool for z\/OS"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"720","Edition":"","Line of Business":{"code":"LOB10","label":"Data and AI"}}]

Document Information

Modified date:
12 February 2021