IBM Support

PM38423: SQLCODEN206 WHEN EXECUTING VIEW DDL CREATED BY GEN IF THE "RUN SQLID" OPTION IS USED.

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 Version 7.2.0 GEN function
    creates incorrectly qualified column names for a CREATE VIEW
    statement when the "Run SQLID" option is used.
    Executing the SQL results in a SQLCODE -206 / SQLCODEN206.
    

Local fix

  • Do not use the "Run SQLID" option on panel ADB2GEN "Generate SQL
    from DB2 catalog".
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED: Users of the DB2 Administration Tool for     *
    *                 z/OS who use the GEN function to generate    *
    *                 DDL for a view with 'Run SQLID' specified    *
    *                 on panel ADB2GEN 'Generate SQL from DB2      *
    *                 catalog'.                                    *
    ****************************************************************
    * PROBLEM DESCRIPTION: When using the GEN function to generate *
    *                      DDL for a view and the 'Run SQLID'      *
    *                      option is specified, executing the      *
    *                      generated CREATE VIEW statement         *
    *                      results in a SQLCODE=-206 / SQLCODEN206 *
    *                      because several column names are        *
    *                      incorrectly qualified .                 *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    When using GEN function to generate the DDL for a view with the
    'Run SQLID' option specified on panel ADB2GEN, column names in
    the "ORDER BY" clause are qualified and causes an SQLCODE=-206/
    SQLCODEN206.
    

Problem conclusion

  • Problem has been resolved.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PM38423

  • Reported component name

    DB2 ADMIN TOOL

  • Reported component ID

    568851500

  • Reported release

    720

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2011-05-04

  • Closed date

    2011-08-11

  • Last modified date

    2011-09-02

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

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

    UK70727 UK70728

Modules/Macros

  •    ADB2FMT  ADB2PA   ADB2REG
    

Fix information

  • Fixed component name

    DB2 ADMIN TOOL

  • Fixed component ID

    568851500

Applicable component levels

  • RA10 PSY UK70727

       UP11/08/16 P F108

  • R720 PSY UK70728

       UP11/08/16 P F108

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

Document Information

Modified date:
02 September 2011