IBM Support

PI81570: CREATE MAY RESULT IN SQLCODE -206 BECAUSE OF INCORRECT DDL OR WSL GENERATED BY DB2 ADMIN TOOL

A fix is available

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • When the analyzed DDL contains a CREATE VIEW
    statement with:
    1. Mixed case common table column
    2. Common table column is concatenated by a correlation name
    the execution of CREATE VIEW statement will fail with a
    SQLCODE -206 / SQLCODEN206 error:
    DSNT408I SQLCODE = -206, ERROR: >OBJECT<
     IS NOT VALID IN THE CONTEXT WHERE IT IS USED
      DSNT418I SQLSTATE = 42703
      SQLSTATE RETURN CODE
    

Local fix

  • N/A
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED: Users of the DB2 Administration Tool         *
    *                 for z/OS and DB2 Object Comparison           *
    *                 Tool for z/OS who use the Change             *
    *                 Management Batch (CM Batch) interface        *
    *                 to submit a job to import and analyze        *
    *                 a change.                                    *
    ****************************************************************
    * PROBLEM DESCRIPTION: The CM batch job failed with a          *
    *                      SQLCODE = -206 / SQLCODEN206            *
    *                      object-name is not valid in the         *
    *                      context where it is used.               *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    When the analyzed DDL contains a CREATE VIEW statement with:
    
    1. Mixed case common table column
    
    2. Common table column is concatenated by a correlation name
    
    the execution of CREATE VIEW statement will fail with a
    SQLCODE -206 / SQLCODEN206 error:
    
    DSNT408I SQLCODE = -206, ERROR: >OBJECT<
     IS NOT VALID IN THE CONTEXT WHERE IT IS USED
      DSNT418I SQLSTATE = 42703
      SQLSTATE RETURN CODE
    

Problem conclusion

  • Problem has been resolved.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PI81570

  • Reported component name

    DB2 ADMIN TOOL

  • Reported component ID

    568851500

  • Reported release

    B20

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2017-05-12

  • Closed date

    2017-06-09

  • Last modified date

    2017-07-05

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

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

    UI47921

Modules/Macros

  •    ADB2PA   ADB2PA7
    

Fix information

  • Fixed component name

    DB2 ADMIN TOOL

  • Fixed component ID

    568851500

Applicable component levels

  • RB20 PSY UI47921

       UP17/06/13 P F706

  • RC10 PSY UI47922

       UP17/06/13 P F706

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

Document Information

Modified date:
05 July 2017