IBM Support

PH37040: SQLCODE -502: THE CURSOR IDENTIFIED IN AN OPEN STATEMENT IS ALREADY OPEN

A fix is available

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • After invoking Optim for a DB2 V12 system an SQLCODE -502 may be
    encountered by selecting one of the available primary menu
    options.
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED: Users invoking Optim on a DB2 version 12     *
    *                 subsystem.                                   *
    ****************************************************************
    * PROBLEM DESCRIPTION: Users invoking Optim on a DB2 version   *
    *                      12 subsystem may receive an SQLCODE     *
    *                      -502 error.                             *
    ****************************************************************
    * RECOMMENDATION: Apply the fix provided.                      *
    ****************************************************************
    Due to a logic error in retrieving the DB2 version 12 function
    levels the cursor used may remain open causing a -502 SQLCODE.
    

Problem conclusion

  • The error has been resolved.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PH37040

  • Reported component name

    OPTIM MOVE FOR

  • Reported component ID

    5655V0700

  • Reported release

    B70

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2021-05-07

  • Closed date

    2021-05-14

  • Last modified date

    2021-06-02

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

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

Modules/Macros

  • FOP1OSFN FOP9APIM FOPCFPMN FOPCXLIB FOPHSTM  FOPMADDE FOPMAIN
    FOPMAMAI FOPMCMAI FOPMCOFN FOPMCOLA FOPMCOLP FOPMDPRC FOPMECMN
    FOPMMUNU FOPMMUTL FOPODPP  FOPOMN   FOPZFMMN FOPZMAIN
    

Fix information

  • Fixed component name

    OPTIM MOVE FOR

  • Fixed component ID

    5655V0700

Applicable component levels

  • RB70 PSY UI75409

       UP21/05/18 P F105

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":"BU054","label":"Systems w\/TPS"},"Product":{"code":"SG19M","label":"APARs - z\/OS environment"},"Platform":[{"code":"PF054","label":"z\/OS"}],"Version":"B70"}]

Document Information

More support for:
APARs - z/OS environment

Software version:
B70

Operating system(s):
z/OS

Document number:
6450963

Modified date:
03 June 2021