IBM Support

PH51701: IN SQL MODE REPORT POSITIVE SQLCODE

A fix is available

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • When processing an unload in SQL mode, Db2 HPU should report any
    positive SQLCODE received from Db2 as it may provide useful
    information about how the SELECT statement is processed by Db2.
    It is noticeably useful to check whether an OPTIMIZATION HINT
    specified through the Db2 HPU OPTiMIZATION_HINT option is taken
    into account by Db2, as Db2 informs about that by issuing
    SQLCODE +394 or SQLCODE +305.
    

Local fix

  • N/A
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED: Users of Db2 High Performance Unload         *
    *                 for z/OS                                     *
    ****************************************************************
    * PROBLEM DESCRIPTION: When processing an unload in SQL mode,  *
    *                      Db2 HPU should report any positive      *
    *                      SQLCODE received from Db2 when it       *
    *                      performs a PREPARE statement for the    *
    *                      SELECT statement involved in the        *
    *                      logical unload. Such information        *
    *                      provides details about how the SELECT   *
    *                      statement will be processed by Db2.     *
    *                      It is noticeably useful to check        *
    *                      whether an OPTIMIZATION HINT specified  *
    *                      through the Db2 HPU OPTiMIZATION_HINT   *
    *                      option is taken into account by Db2, as *
    *                      Db2 informs about that by issuing       *
    *                      SQLCODE +394 or SQLCODE +395.           *
    ****************************************************************
    * RECOMMENDATION: Apply the PTF                                *
    ****************************************************************
    In SQL mode report positive SQLCODE
    

Problem conclusion

  • Code has been changed to fix this problem
    

Temporary fix

Comments

APAR Information

  • APAR number

    PH51701

  • Reported component name

    DB2 HI PERF UNL

  • Reported component ID

    5697F4400

  • Reported release

    510

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2023-01-04

  • Closed date

    2023-02-13

  • Last modified date

    2023-03-01

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

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

    UI90505

Modules/Macros

  • INZCRXSM INZCRXSQ INZUTILK
    

Fix information

  • Fixed component name

    DB2 HI PERF UNL

  • Fixed component ID

    5697F4400

Applicable component levels

  • R510 PSY UI90505

       UP23/02/17 P F302

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":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SSZJXP","label":"DB2 Tools for z\/OS"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"5.1.0","Line of Business":{"code":"LOB10","label":"Data and AI"}}]

Document Information

Modified date:
01 March 2023