IBM Support

PH43358: OBJECT COMPARE GENERATES CREATE UNIQUE INDEX STATEMENT MISSING 'ENDING AT' CLAUSE FOR PARTITIONS SQLCODE = -660

A fix is available

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • When DDL is being imported to create objects. The CREATE UNIQUE
    INDEX DDL statement is missing the ENDING AT clause for
    partitions.
    
    The statement is accurate when importing the change, but after
    the analyze is run the generated statement is incorrect. The
    execution of this statement fails with SQLCODE -660:
    
    ADB7955E DSNT408I SQLCODE = -660, ERROR: INDEX >indexname<
             CANNOT BE CREATED OR ALTERED ON
    ADB7955E PARTITIONED TABLE SPACE >tsname< BECAUSE KEY LIMITS ARE
             NOT SPECIFIED
    
    
    
    Keyword:  SQLCODE660N
    

Local fix

  • n/a
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED: Users of Db2 Administration Tool for z/OS    *
    *                 who analyze changes                          *
    ****************************************************************
    * PROBLEM DESCRIPTION: When analyzing a change to add a        *
    *                      partitioning index, Db2 Admin Tool does *
    *                      not include the ENDING AT clause after  *
    *                      the PARTITION number in the DDL for     *
    *                      CREATE UNIQUE INDEX.                    *
    ****************************************************************
    When importing and analyzing a change that adds a unique index
    with partition limits specified, the generated DDL is missing
    the ENDING AT clause after the partition number. This omission
    causes the work statement list (WSL) to fail with SQLCODE -660.
    Db2 Admin Tool should correctly generate the statement for the
    WSL so that it executes without error.
    

Problem conclusion

  • The problem has been resolved.
    
    Search Keywords: SQLCODE660N
    

Temporary fix

Comments

APAR Information

  • APAR number

    PH43358

  • 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

    2022-01-14

  • Closed date

    2022-02-14

  • Last modified date

    2022-03-01

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

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

    UI79301

Modules/Macros

  • ADBCDTS
    

Fix information

  • Fixed component name

    DB2 ADMIN TOOL

  • Fixed component ID

    568851500

Applicable component levels

  • RC10 PSY UI79301

       UP22/02/17 P F202

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 March 2022