A fix is available
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:
Average rating
Copyright and trademark information
IBM, the IBM logo and ibm.com are trademarks of International Business Machines Corp., registered in many jurisdictions worldwide. Other product and service names might be trademarks of IBM or other companies. A current list of IBM trademarks is available on the Web at "Copyright and trademark information" at www.ibm.com/legal/copytrade.shtml.