IBM Support

PK22242: GEN COMMAND FAILS WITH SQLCODEN873 ERROR: DATA ENCODED WITH DIFFERENT CCSIDS CANNOT BE REFERENCED IN THE SAME SQL STATEMENT

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 GEN command fails with a SQLCODE
    -873 / SQLCODE873 when the default encoding scheme /
    DSNHDECP ENSCHEME is ASCII.
    

Local fix

  • Change DSNHDECP: ENSCHEME to EDCDIC and include the CCSID ASCII
    clause in DDL when creating objects.
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED: Users of DB2 Administartion Tool, who use    *
    *                 DB2 systems with catalog encoding schemes    *
    *                 other than EBCDIC, are affected.             *
    ****************************************************************
    * PROBLEM DESCRIPTION: GEN command fails with SQLCODEN873 --   *
    *                      -- DATA ENCODED WITH DIFFERENT CCSIDS   *
    *                      CANNOT  BE REFERENCED IN THE SAME SQL   *
    *                      STATEMENT                               *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    Declared Global Temporary Tables are using in GEN for catalog
    access. These tables are joined with catalog tables.  For the
    queries to be successful,  the CCSID of the Global temp table
    must be the same as the catalog;  otherwise a SQLCODE of -873
    occurs.
    

Problem conclusion

  • ADB2REP has been changed to correct the problem.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PK22242

  • Reported component name

    DB2 ADMIN TOOL

  • Reported component ID

    568851500

  • Reported release

    710

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2006-03-27

  • Closed date

    2006-03-30

  • Last modified date

    2006-05-01

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

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

Modules/Macros

  •    ADB2REP
    

Fix information

  • Fixed component name

    DB2 ADMIN TOOL

  • Fixed component ID

    568851500

Applicable component levels

  • R710 PSY UK13140

       UP06/04/19 P F604

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

Document Information

Modified date:
01 May 2006