IC83010: DYNAMIC SQL EXECUTION FAILS WITH SQL0138 WITH REOPT=ALWAYS

Subscribe

You can track all active APARs for this component.

APAR status

  • Closed as program error.

Error description

  • A dynamic SQL statement may fail at execution time with SQL0138
    when REOPT is set to ALWAYS.  This can happen when the statement
    includes a SUBSTR function where the first argument is an
    untyped parameter marker and the offset and length arguments put
    the substring range outside the actual parameter marker value at
    execution time.
    
    This is similar to IZ08102 which is an APAR for stored
    procedures
    

Local fix

  • Cast the untyped parameter marker to make a typed parameter
    marker, e.g.: SUBSTR( CAST( ? as VARCHAR(32672) ), <offset>,
    <length> )
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * ALL                                                          *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * See Error Description                                        *
    ****************************************************************
    * RECOMMENDATION:                                              *
    * Upgrade to Version 9.5 Fix Pack 10                           *
    ****************************************************************
    

Problem conclusion

  • Problem was first fixed in Version 9.5 Fix Pack 10
    

Temporary fix

Comments

APAR Information

  • APAR number

    IC83010

  • Reported component name

    DB2 FOR LUW

  • Reported component ID

    DB2FORLUW

  • Reported release

    950

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2012-04-30

  • Closed date

    2012-12-11

  • Last modified date

    2012-12-11

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

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

    IC84121 IC84610 IC87873

Fix information

  • Fixed component name

    DB2 FOR LUW

  • Fixed component ID

    DB2FORLUW

Applicable component levels

  • R950 PSN

       UP



Rate this page:

(0 users)Average rating

Add comments

Document information


More support for:

DB2 for Linux, UNIX and Windows

Software version:

9.5

Reference #:

IC83010

Modified date:

2012-12-11

Translate my page

Machine Translation

Content navigation