IBM Support

LI72544: 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

  • Users affected: All
    Problem summary: SAME STATEMENT NAME IN MORE THAT ONE DYNAMIC
    CURSOR DECLARE IN THE SAME SQL PROCEDURE CAUSES REBIND COMMAND
    TO FAIL.
    Problem Details: see Problem Summary
    

Problem conclusion

  • First fixed in v9.1 Fp5
    

Temporary fix

  • Use different cursor names
    

Comments

APAR Information

  • APAR number

    LI72544

  • Reported component name

    DB2 UDE ESE LIN

  • Reported component ID

    5765F4104

  • Reported release

    910

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2007-08-31

  • Closed date

    2008-07-17

  • Last modified date

    2008-07-17

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

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

    LI72587

Fix information

  • Fixed component name

    DB2 UDE ESE LIN

  • Fixed component ID

    5765F4104

Applicable component levels

  • R910 PSY

       UP

[{"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SSEPGG","label":"DB2 for Linux- UNIX and Windows"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"910","Line of Business":{"code":"LOB10","label":"Data and AI"}}]

Document Information

Modified date:
16 October 2021