IBM Support

IC76672: CALLING CREATE OR REPLACE FUNCTION ON AN EXISTING PROCEDURE (OR VICE VERSA) UNEXPECTEDLY THROWS WARNING SQL0100W

Subscribe

You can track all active APARs for this component.

APAR status

  • Closed as program error.

Error description

  • The following sequence of commands results in SQL0100W:
    CREATE OR REPLACE PROCEDURE ADMIN(P1 INTEGER) SPECIFIC ADMIN
    BEGIN END@
      CREATE OR REPLACE FUNCTION ADMIN(P1 INTEGER)  SPECIFIC ADMIN
    RETURNS INTEGER BEGIN RETURN 1; END@
    
    The correct result should be SQL0456N.
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * All DB2 Version 9.7 Fix Pack 4 and earlier servers on Linux, *
    * Unix, and Windows platforms issuing the CREATE OR REPLACE    *
    * PROCEDURE/FUNCTION command.                                  *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * The following sequence of commands results in SQL0100W:      *
    *                                                              *
    *   CREATE OR REPLACE PROCEDURE ADMIN(P1 INTEGER) SPECIFIC     *
    * ADMIN                                                        *
    * BEGIN END@                                                   *
    *                                                              *
    *   CREATE OR REPLACE FUNCTION ADMIN(P1 INTEGER)  SPECIFIC     *
    * ADMIN                                                        *
    * RETURNS INTEGER BEGIN RETURN 1; END@                         *
    *                                                              *
    *                                                              *
    *                                                              *
    * The correct result should be SQL0456N.                       *
    ****************************************************************
    * RECOMMENDATION:                                              *
    * Upgrade to DB2 Version 9.7 Fix Pack 5.                       *
    ****************************************************************
    

Problem conclusion

  • The problem is first fixed in DB2 Version 9.7 Fix Pack 5 and all
    subsequent Fix Packs.
    

Temporary fix

Comments

APAR Information

  • APAR number

    IC76672

  • Reported component name

    DB2 FOR LUW

  • Reported component ID

    DB2FORLUW

  • Reported release

    970

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2011-05-27

  • Closed date

    2011-12-07

  • Last modified date

    2011-12-07

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

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

Fix information

  • Fixed component name

    DB2 FOR LUW

  • Fixed component ID

    DB2FORLUW

Applicable component levels

  • R820 PSN

       UP

  • R910 PSN

       UP

  • R950 PSN

       UP

  • R970 PSN

       UP

  • R980 PSN

       UP



Document information

More support for: DB2 for Linux, UNIX and Windows

Software version: 9.7

Reference #: IC76672

Modified date: 07 December 2011