IBM Support

PI64723: SQLCODE -650 REASON 22 WHEN EXECUTING AN ALTER TO DROP 'WITH DEFAULT' FROM A COLUMN

A fix is available

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • When generating ALTER SQL to drop 'WITH DEFAULT' from a column,
    DB2 Admin Tool includes a 'DROP DEFAULT' statement.  If the
    table is referenced by a materialized query table or a view,
    then executing the SQL results in:
    
    DSNT408I SQLCODE = -650, ERROR:  THE ALTER STATEMENT CANNOT BE
    EXECUTED, REASON 22
    DSNT418I SQLSTATE   = 56090 SQLSTATE RETURN CODE
    DSNT415I SQLERRP    = DSNXIALC SQL PROCEDURE DETECTING ERROR
    DSNT416I SQLERRD    = 333  0  0  -1  0  0 SQL DIAGNOSTIC
    INFORMATION
    DSNT416I SQLERRD    = X'0000014D'  X'00000000'  X'00000000'
    X'FFFFFFFF' X'00000000'  X'00000000' SQL DIAGNOSTIC INFORMATION
    

Local fix

  • N/A
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED: Users of DB2 Administration Tool             *
    *                 for z/OS and DB2 Object Comparison           *
    *                 Tool for z/OS who make some change(s)        *
    *                 to a table which is referenced by a          *
    *                 view.                                        *
    ****************************************************************
    * PROBLEM DESCRIPTION: When making change(s) to a table        *
    *                      which is referenced by a view, a        *
    *                      SQLCODE = -650 / SQLCODEN650,           *
    *                      REASON 22 is observed.                  *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    When making change(s) to a table which is referenced
    by a view, a SQLCODE = -650,  REASON 22 is observed:
    
    DSNT408I SQLCODE = -650, ERROR:  THE ALTER
    STATEMENT CANNOT BE EXECUTED, REASON 22
    DSNT418I SQLSTATE   = 56090
    SQLSTATE RETURN CODE
    

Problem conclusion

  • Problem has been resolved.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PI64723

  • Reported component name

    DB2 ADMIN TOOL

  • Reported component ID

    568851500

  • Reported release

    B10

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2016-06-22

  • Closed date

    2016-10-13

  • Last modified date

    2016-11-02

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

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

    UI41660 UI41661

Modules/Macros

  • ADB2CME  ADB2CMF  ADB2CMP  ADB2CMT
    

Fix information

  • Fixed component name

    DB2 ADMIN TOOL

  • Fixed component ID

    568851500

Applicable component levels

  • RB10 PSY UI41660

       UP16/10/19 P F610

  • RB20 PSY UI41661

       UP16/10/18 P F610

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

Document Information

Modified date:
02 November 2016