IBM Support

PQ79731: SQLCODE -811 WHEN USING FETCH FIRST 1 ROW ONLY WITH OPTIMIZATION HINTS

A fix is available

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • SQLM811 can occur when using FETCH FIRST 1 ROW ONLY with
    optimization hints.  If the hint is used, -811 will occur,
    even though only one row should be fetched.  SQLCODE811
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED: All users of DB2 optimization hints.         *
    ****************************************************************
    * PROBLEM DESCRIPTION: SQLM811 when using FETCH FIRST ROW ONLY *
    *                      with optimization hints                 *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    SQLCODE -811 can occur when using FETCH FIRST ROW ONLY
    in conjunction with optimization hints.
    Optimization hints cause the code for FETCH FIRST to be
    skipped inadvertently when the hint is used.  When
    FETCH FIRST is used, we could attempt to fetch more than one
    row.
    Additional Keywords:
    OPTHINT  SET CURRENT OPTIMIZATION HINT  SQL811  SQLCODE811
    SQLACCESSPATH
    

Problem conclusion

  • Code is changed to allow FETCH FIRST processing even when
    optimization hints are active.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PQ79731

  • Reported component name

    5740 IBM DATABA

  • Reported component ID

    5740XYR00

  • Reported release

    710

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2003-10-16

  • Closed date

    2003-11-26

  • Last modified date

    2004-01-02

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

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

    UQ82558

Modules/Macros

  •    DSNXOTS
    

Fix information

  • Fixed component name

    5740 IBM DATABA

  • Fixed component ID

    5740XYR00

Applicable component levels

  • R710 PSY UQ82558

       UP03/12/11 P F312

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":"710"}]

Document Information

Modified date:
23 December 2020