IBM Support

PK06201: ADMIN TOOL GETS SQLCODE -811 SQLCODE811 ON DDL COMMAND FOR FUNCTION WITH THE SAME NAME AS A STORED PROCEDURE

A fix is available

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • When a Stored Procedure and User Defined Function have the same
    name in DB2 7.1 The DDL line command produces a SQLCODE -811
    ( SQLCODE811 ) Additional Symptoms: can happen with the GEN
    command, GEN or DDL command produce No DDL for the Function or
    Stored Procedure.
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED: Users of DB2 Administration Tool, who run    *
    *                 GEN to produce DDL for UDFs when there are   *
    *                 STP's which have the same schema and name,   *
    *                 are affected.                                *
    ****************************************************************
    * PROBLEM DESCRIPTION: SQLCODE -811 was encountered on DDL     *
    *                      command for FUNCTION with the same name *
    *                      as a Stored Procedure.                  *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    See Problem Description.
    

Problem conclusion

  • GEN was not qualifying a query to sysibm.sysroutines by
    ROUTINETYPE  = 'F' and CAST_FUNCTION = 'N'.
    .*
    The ADB2REE/ADB2RE/ADB2REZ have been changed to add these
    predicates.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PK06201

  • Reported component name

    DB2 ADMIN TOOL

  • Reported component ID

    568851500

  • Reported release

    510

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2005-05-23

  • Closed date

    2005-06-24

  • Last modified date

    2005-07-01

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

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

Modules/Macros

  •    ADB2RE   ADB2REE  ADB2REZ
    

Fix information

  • Fixed component name

    DB2 ADMIN TOOL

  • Fixed component ID

    568851500

Applicable component levels

  • R510 PSY UK04850

       UP05/06/30 P F506

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

Document Information

Modified date:
01 July 2005