IBM Support

LI73188: SAME STATEMENT NAME IN MORE THAT ONE DYNAMIC CURSOR DECLARATION IN SAME SQL PROCEDURE CAUSES REBIND COMMAND TO FAIL.

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Same statement name in more that one dynamic cursor declaration
    in same SQL procedure causes rebind command to fail. This is
    documented as a restriction but it is not enforced during
    compilation time.
    
    From DB2 Reference for Dynamic Cursor -
    
    statement-name
    The SELECT statement of the cursor is the prepared SELECT
    statement identified by the statement-name when the cursor is
    opened. The statement-name must not be identical to a
    statement-name specified in another DECLARE CURSOR statement of
    the source program
    

Local fix

  • Change dynamic cursor declarations so that all statement names
    are unique within a SQL procedure.
    

Problem summary

  • See ERROR DESCRIPTION.
    

Problem conclusion

  • Problem was first fixed in Version 9.5 FixPak 1 (s080328).  At
    minimum this fix should be applied on the server side.
    

Temporary fix

  • See LOCAL FIX.
    

Comments

APAR Information

  • APAR number

    LI73188

  • Reported component name

    DB2 UDE ESE LIN

  • Reported component ID

    5765F4104

  • Reported release

    950

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2008-03-10

  • Closed date

    2008-05-06

  • Last modified date

    2008-05-06

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

    LI72587

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

Fix information

  • Fixed component name

    DB2 UDE ESE LIN

  • Fixed component ID

    5765F4104

Applicable component levels

  • R810 PSN

       UP

  • R820 PSN

       UP

  • R910 PSN

       UP

  • R950 PSN

       UP

[{"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SSEPGG","label":"DB2 for Linux, UNIX and Windows"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"950","Edition":"","Line of Business":{"code":"LOB10","label":"Data and AI"}}]

Document Information

Modified date:
06 May 2008