IBM Support

PI55275: THE OFFLOADED QUERY FAILS WITH SQLCODE -181 WITH TIMESTAMP VALUE TRUNCATED. BAD TIMESTAMP EXTERNAL REPRESEN 16/02/15 PTF PECHANGE

A fix is available

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • A QUERY OFFLOADED TO ACCELERATOR FAILED WITH SQLCODE -181.
    THE NETEZZA ERROR MESSAGE FOR -181 HAS BAD TIMESTAMP EXTERNAL
    REPRESENTATION.
    THE PROBLEM IS DUE TO A TIMESTAMP LITERAL WITHOUT MICROSECONDS
    WERE TRUNCATED IN THE REWRITTEN QUERY TEXT BY DB2.
    

Local fix

  • APPLICATION CAN CHANGE TO PROVIDE THE TIMESTAMP LITERAL VALUE
    WITH MICROSECONDS TO AVOID THE ISSUE.
    THIS ISSUE STARTS TO HAPPEN AFTER THE APPLICATION OF PI48868.
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED: DB2 11 for z/OS users who exploit query      *
    *                 offloading using queries with a              *
    *                 timestamp constant, and have                 *
    *                 PI48868/UI32840 applied.                     *
    ****************************************************************
    * PROBLEM DESCRIPTION: When there is TIMESTAMP constant in     *
    *                      an offloading query and the TIMESTAMP   *
    *                      constant contains no fractional         *
    *                      seconds, SQL code -181 is returned.     *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    When there is a TIMESTAMP constant in an offloaded query and
    the TIMESTAMP constant contains no fractional seconds,
    SQL code -181 is returned.
    
    Example query:
      SELECT * FROM T1
      WHERE C1  <
            TIMESTAMP '2015-10-31 00:00:00'
      ;
    

Problem conclusion

  • DB2 code is fixed so that a query with a TIMESTAMP constant is
    offloaded successfully.
    
    Additional Keywords:
    SQLCODE181 SQLTIMESTAMP IDAAV4R1/K IDAAV5R1/K
    

Temporary fix

Comments

APAR Information

  • APAR number

    PI55275

  • Reported component name

    DB2 OS/390 & Z/

  • Reported component ID

    5740XYR00

  • Reported release

    B10

  • Status

    CLOSED PER

  • PE

    YesPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2016-01-12

  • Closed date

    2016-01-26

  • Last modified date

    2016-05-17

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

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

    UI34790

Modules/Macros

  • DSNXONZC
    

Fix information

  • Fixed component name

    DB2 OS/390 & Z/

  • Fixed component ID

    5740XYR00

Applicable component levels

  • RB10 PSY UI34790

       UP16/02/26 P F602 Ø

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":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSEPEK","label":"Db2 for z\/OS"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"11.0","Edition":"","Line of Business":{"code":"LOB10","label":"Data and AI"}},{"Business Unit":{"code":"BU054","label":"Systems w\/TPS"},"Product":{"code":"SG19M","label":"APARs - z\/OS environment"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"11.0","Edition":"","Line of Business":{"code":"","label":""}}]

Document Information

Modified date:
17 May 2016