IBM Support

PK88508: INCORRECT OUTPUT FROM LOWER (LCASE) BUILT-IN FUNCTION ON DBCS EBCDIC DATA

A fix is available

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Incorrect output from LOWER (LCASE) built-in function on EBCDIC
    DBCS data.
    DB2INCORR/K
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED: All users of LOWER built-in function with    *
    *                 EBCDIC DBCS input argument for MIXED=YES     *
    *                 SYSTEMS only.                                *
    ****************************************************************
    * PROBLEM DESCRIPTION: Incorrect output is returned from the   *
    *                      LOWER (or LCASE) built-in function when *
    *                      input to the function is EBCDIC graphic *
    *                      string (DBCS string).                   *
    *                                                              *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    Incorrect output is returned from the LOWER (or LCASE) built-in
    function when input to the function is EBCDIC graphic string.
    Instead of LOWER function, an UPPER function is performed,
    causing an incorrect result.
    
    The following example (for a MIXED=YES system) helps to
    demonstrate the problem:
    
      SET CURRENT LOCALE LC_CTYPE = 'KO_KR';       -- set locale
    
      SELECT HEX(GRAPHIC('A')) as MAJ,             -- upper case
             HEX(GRAPHIC('a')) as MIN,             -- lower case
             HEX(LOWER(GRAPHIC('Aa'))) as LOWER    -- LOWER function
      FROM SYSIBM.SYSDUMMY1;
    
      Expected result is:
       +-------------------------+
       | MAJ  | MIN  |  LOWER    |
       +-------------------------+
     1_| 42C1 | 4281 | 42814281  |
       +-------------------------+
    
      However, incorrect result is returned:
       +-------------------------+
       | MAJ  | MIN  |  LOWER    |
       +-------------------------+
     1_| 42C1 | 4281 | 42C142C1  |
       +-------------------------+
    

Problem conclusion

  • Code in DB2 was changed to properly handle the LOWER function
    for EBCDIC DBCS input strings.
    
    ADDITIONAL KEYWORDS:  SQLLCASE SQLLOWER SQLUPPER SQLUCASE
    

Temporary fix

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

Comments

APAR Information

  • APAR number

    PK88508

  • Reported component name

    DB2 OS/390 & Z/

  • Reported component ID

    5740XYR00

  • Reported release

    810

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    YesHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2009-06-10

  • Closed date

    2009-07-06

  • Last modified date

    2011-05-12

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

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

    UK48110 UK48111

Modules/Macros

  • DSNXHLL  DSNXLECC DSNXRLES DSNXRLET DSNXVCCV
    

Fix information

  • Fixed component name

    DB2 OS/390 & Z/

  • Fixed component ID

    5740XYR00

Applicable component levels

  • R810 PSY UK48110

       UP09/07/22 P F907

  • R910 PSY UK48111

       UP09/07/22 P F907

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":"8.1","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":"8.1","Edition":"","Line of Business":{"code":"","label":""}}]

Document Information

Modified date:
12 May 2011