PM80970: D165262. INCORROUT, RTRIMH MISMATCH WHEN SELECT FROM USER TABLE.

A fix is available

Subscribe

You can track all active APARs for this component.

APAR status

  • Closed as program error.

Error description

  • D165262. Incorrout, RTRIMH mismatch when select from user
    table.
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED: All DB2 10 for z/OS users of the TRIM,       *
    *                 RTRIM, or STRIP scalar functions.            *
    ****************************************************************
    * PROBLEM DESCRIPTION: An incorrect result can be returned for *
    *                      a query that explicitly or implicitly   *
    *                      invokes the TRIM, RTRIM, or STRIP       *
    *                      scalar functions.                       *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    An incorrect result can be returned for a query that explicitly
    or implicitly invokes the TRIM, RTRIM, or STRIP scalar
    functions.
    
    The incorrect result can occur because DB2 does not properly
    save the input or trim character string's CCSID so an improper
    CCSID is used for character comparison which can then result in
    an incorrect mismatch.
    
    The problem was reported when using MIXED character data.  For
    example if DSNHDECP specifies these settings,
    
      ENSCHEME=EBCDIC
      Japanese CCSID 930  (Japanese Extended Katakana)
      MIXED/Graphic data support
    
    the following query can return an incorrect result when the
    input string and trim character CCSIDs are not saved properly.
    
      SELECT
        RTRIM('abcd  x y z A B C X Y Z xyz',
         'abcd  x y z X Y Z xyz')      RTRIM
      FROM SYSIBM.SYSDUMMY1;
    

Problem conclusion

  • The code in DB2 which supports the RTRIM functions has been
    modified to properly save the CCSIDs for both the input and trim
    strings during processing.
    
    Additional Keywords: SQLGRAPHIC SQLTRIM SQLRTRIM SQLSTRIP
                         DB2INCORR/K INCORROUT SQLINCORR
                         SQLINCORROUT
    

Temporary fix

  • *********
    * HIPER *
    *********
    

Comments

APAR Information

  • APAR number

    PM80970

  • Reported component name

    DB2 OS/390 & Z/

  • Reported component ID

    5740XYR00

  • Reported release

    A10

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    YesHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2013-01-18

  • Closed date

    2013-03-06

  • Last modified date

    2013-04-02

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

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

    UK92287

Modules/Macros

  •    DSNXRSB2
    

Fix information

  • Fixed component name

    DB2 OS/390 & Z/

  • Fixed component ID

    5740XYR00

Applicable component levels

  • RA10 PSY UK92287

       UP13/03/22 P F303

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.



Rate this page:

(0 users)Average rating

Document information


More support for:

DB2 for z/OS

Software version:

A10

Reference #:

PM80970

Modified date:

2013-04-02

Translate my page

Machine Translation

Content navigation