PM91561: SQLCODE16002 RETURNED WHEN USING XMLMODIFY FUNCTION IN EBCDIC ENCODING SCHEME AND TEXT CONTAINS SPECIAL CHARACTERS

A fix is available

Subscribe

You can track all active APARs for this component.

APAR status

  • Closed as program error.

Error description

  • This issue is about the SQLCODE -16002 released when using
    function XMLMODIFY with some "abnormal" characters to update.
    And environment is using EBCDIC code page 424.
    

Local fix

  • N/A
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED: All DB2 10 and DB2 11 for z/OS users who use *
    *                 the XMLMODIFY function.                      *
    ****************************************************************
    * PROBLEM DESCRIPTION: SQLCODE16002 may be returned when the   *
    *                      XMLMODIFY function is used in the       *
    *                      EBCDIC encoding scheme and the xquery-  *
    *                      update-constant text of the XMLMODIFY   *
    *                      function contains special characters.   *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    Here is an example to show the failing case.
    
     =========
      EXAMPLE
     =========
    
     CREATE TABLE PM91561T (CXML XML) CCSID EBCDIC;
    
     INSERT INTO PM91561T VALUES('<a>mytest</a>');
    
     UPDATE PM91561T
     SET CXML = XMLMODIFY('replace value of node /a with '' ''');
    

Problem conclusion

  • DB2 code has been modified to handle the aforementioned problem
    correctly.
    
    Additional keywords: SQLCODE16002 SQLENCODING SQLXML
    

Temporary fix

Comments

APAR Information

  • APAR number

    PM91561

  • Reported component name

    DB2 OS/390 & Z/

  • Reported component ID

    5740XYR00

  • Reported release

    A10

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2013-06-21

  • Closed date

    2013-08-28

  • Last modified date

    2013-10-03

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

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

    UK97000 UK97008

Modules/Macros

  • DSNXOFN2
    

Fix information

  • Fixed component name

    DB2 OS/390 & Z/

  • Fixed component ID

    5740XYR00

Applicable component levels

  • RA10 PSY UK97000

       UP13/09/12 P F309

  • RB10 PSY UK97008

       UP13/09/12 P F309

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 #:

PM91561

Modified date:

2013-10-03

Translate my page

Machine Translation

Content navigation