IBM Support

PM35179: sqlcode in exception record does not match true value in ZOSCICS

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • When a soft or hard sql error occurs in a RBD generated cobol
    application, and an excpetion is thrown, then the sqlcode field
    of the exception record does not match the actual sqlcode.
    
    Users can use sysvar.sqlData.sqlcode for the programming logic
    as an alternative. This field is set correctly.
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    The problems were twofold.
    First, the SQL error code being moved to the exception
    record was the original one, but not the resulting one. This
    caused a discrepancy between the sysval.sqlcode (the
    resulting one) and the exception record's copy.
    Second, when a hard error was thrown, the runtime would
    issue a rollback, which caused the sql error code to be
    overwritten with the sql code from the rollback. This caused
    the loss of the original user's sql code when the
    onexception block was invoked.
    

Problem conclusion

  • These problems have been resolved by 1) copying the correct
    sql code value to the exception record, and 2) by saving and
    restoring the sql code, across the call to the runtime that
    handles the hard error.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PM35179

  • Reported component name

    RATL BUS DEV

  • Reported component ID

    5724S5000

  • Reported release

    751

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2011-03-18

  • Closed date

    2011-05-06

  • Last modified date

    2011-05-06

  • 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

    RATL BUS DEV

  • Fixed component ID

    5724S5000

Applicable component levels

  • R751 PSN

       UP

[{"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SSMQ79","label":"Rational Business Developer"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"7.5.1","Line of Business":{"code":"LOB35","label":"Mainframe SW"}}]

Document Information

Modified date:
27 October 2021