IBM Support

PM54301: SQLCODEN662 ISSUED DUE TO INCORRECTLY GENERATED DDL DURING OBJECT COMPARE WHEN NUMPARTS AND SEGSIZE CONVERT TS TO UTS

A fix is available

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • SQLCODEN662 ISSUED DUE TO INCORRECTLY GENERATED DDL DURING
    OBJECT COMPARE WHEN NUMPARTS AND SEGSIZE CONVERT TS TO UTS
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED: Users of the DB2 Object Comparison Tool      *
    *                 for z/OS who use Compare function to         *
    *                 compare table spaces with a partitioned      *
    *                 index with masking.                          *
    ****************************************************************
    * PROBLEM DESCRIPTION: In DB2 Object Comparison Tool for z/OS, *
    *                      when comparing table spaces with a      *
    *                      partitioned index and specifying a      *
    *                      MASK field 'SEGSIZE:*,n', if the        *
    *                      index needs to be recreated, an         *
    *                      SQLCODEN662 / SQLCODE =-662             *
    *                      error is issued:                        *
    *                                                              *
    *                      DSNT408I SQLCODE = -662, ERROR:         *
    *                      A PARTITIONED INDEX CANNOT BE           *
    *                      CREATED ON A NON-PARTITIONED,           *
    *                      PARTITION-BY-GROWTH OR                  *
    *                      RANGE-PARTITIONED UNIVERSAL             *
    *                      TABLE SPACE tspace-name.                *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    In DB2 Object Comparison Tool for z/OS, when using Compare
    function to compare table spaces with a partitioned index
    and specifying a MASK field 'SEGSIZE:*,n', if the index needs
    to be recreated, a SQLCODEN662 / SQLCODE =-662 error is issued.
    The masking leads to incorrectly generated DDL which causes a
    table space conversion from partitioned to range-partitioned
    Universal Table Space (UTS).
    

Problem conclusion

  • Program has been updated to catch the invalid statement which
    was produced in the change file after compare.  The compare
    job will fail with a RC08 and an error message MSGADB7112E
    generated as below:
    
    ADB7112E The CREATE INDEX statement can lead to error
    SQLCODEN662/SQLCODE -662, because a partitioned index cannot
    be created on a table which is in a  non-partitioned/
    partition-by-range/partition-by-growth table space.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PM54301

  • Reported component name

    DB2 OBJECT COMP

  • Reported component ID

    5697G6400

  • Reported release

    A10

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2011-12-13

  • Closed date

    2012-06-20

  • Last modified date

    2012-07-02

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

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

    UK79702

Modules/Macros

  •    ADB2CMP  ADB2CMR  ADB7000
    

Fix information

  • Fixed component name

    DB2 ADMIN TOOL

  • Fixed component ID

    568851500

Applicable component levels

  • RA10 PSY UK79702

       UP12/06/27 P F206

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":"A10"}]

Document Information

Modified date:
30 March 2021