IBM Support

PM61527: GEN: 'GENERATE CATALOG STATS' SQLCODEN803 DBID, PSID AND PARTITI ON VALUES 0 FOR SYSTABLESPACESTATS AND SYSINDEXSPACESTATS FFA20

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 GEN function's 'Generate
    catalog stats' option produces SQL INSERT statements for
    SYSTABLESPACESTATS and SYSINDEXSPACESTATS which have a zero / 0
    coded for the DBID, PSID and PARTITION columns resulting in a
    SQLCODEN803 / -803 when the statements are executed.
    

Local fix

  • Amend the generated syntax to include the correct DBID,PSID and
    PARTITION.
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED: Users of the DB2 Administration Tool for     *
    *                 z/OS who use Generate (GEN) to generate      *
    *                 catalog statistics.                          *
    ****************************************************************
    * PROBLEM DESCRIPTION: The DB2 Administration Tool for z/OS    *
    *                      GEN function's 'Generate catalog        *
    *                      stats' option on panel ADB2GEN          *
    *                      'Generate SQL from DB2 catalog'         *
    *                      produces SQL INSERT statements for      *
    *                      DB2 catalog tables                      *
    *                      SYSIBM.SYSTABLESPACESTATS and           *
    *                      SYSIBM.SYSINDEXSPACESTATS which have    *
    *                      a zero / 0 coded for the DBID and       *
    *                      PSID columns resulting in a             *
    *                      SQLCODEN803 / SQLCODE=-803:             *
    *                                                              *
    *                      DSNT408I SQLCODE = -803, ERROR:         *
    *                      AN INSERTED OR UPDATED VALUE            *
    *                      IS INVALID BECAUSE INDEX IN INDEX       *
    *                      SPACE DSNRTX01 CONSTRAINS               *
    *                      COLUMNS OF THE TABLE SO NO              *
    *                      TWO ROWS CAN CONTAIN DUPLICATE          *
    *                      VALUES IN THOSE COLUMNS.                *
    *                      RID OF EXISTING ROW IS >row_address<'.  *
    *                      DSNT418I SQLSTATE   = 23505             *
    *                      SQLSTATE RETURN CODE                    *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    Using GEN to generate catalog statistics results in a
    SQLCODEN803 / SQLCODE=-803 error:
    
    DSNT408I SQLCODE = -803, ERROR:  AN INSERTED
    OR UPDATED VALUE IS INVALID BECAUSE INDEX
    IN INDEX SPACE DSNRTX01 CONSTRAINS COLUMNS
    OF THE TABLE SO NO TWO ROWS CAN CONTAIN
    DUPLICATE VALUES IN THOSE COLUMNS.
    RID OF EXISTING ROW IS >row_address<'.
    DSNT418I SQLSTATE   = 23505
    SQLSTATE RETURN CODE
    

Problem conclusion

  • Problem has been resolved.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PM61527

  • Reported component name

    DB2 ADMIN TOOL

  • Reported component ID

    568851500

  • Reported release

    A10

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2012-03-29

  • Closed date

    2012-08-28

  • Last modified date

    2012-09-05

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

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

Modules/Macros

  •    ADB2RES
    

Fix information

  • Fixed component name

    DB2 ADMIN TOOL

  • Fixed component ID

    568851500

Applicable component levels

  • RA10 PSY UK81352

       UP12/08/30 P F208

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.1.0","Edition":"","Line of Business":{"code":"LOB10","label":"Data and AI"}}]

Document Information

Modified date:
05 September 2012