IBM Support

PI67932: ABEND0C4 AT DSNXGXTT OFFSET078E FOR QUERY ON XML AND REFERENCED TUDF OR VIEW

A fix is available

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • ABEND0C4 at DSNXGXTT OFFSET078E for query on XML and referenced
    TUDF or view, the abend was caused by wrong address of
    XMLnamespace URI
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * All DB2 11 for z/OS users of an SQL                          *
    * statement containing a view or SQL table                     *
    * function with an XMLELEMENT and                              *
    * XMLNAMESPACES function.                                      *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * ABEND0C4 at DSNXGXTT OFFSET078E or                           *
    * ABEND0C4 at DSNXOV1 OFFSETB25C could                         *
    * happen for an SQL statement satisfying                       *
    * all of the following conditions:                             *
    * 1. It references a view or SQL table                         *
    * function.                                                    *
    * 2. The view or SQL table function                            *
    * contains more than one CTE.                                  *
    * 3. These CTE reference more than one                         *
    * XMLELEMENT function.                                         *
    * 4. Some of XMLELEMENT in the CTE don't                       *
    * have XMLNAMESPACES function.                                 *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    An example is shown below:
    
    CREATE TABLE T1 ( C1 XML, C2 DECIMAL(18,0));
    
    CREATE FUNCTION TUDF1()
      RETURNS TABLE(CAMT054 XML)
      LANGUAGE SQL
      NOT DETERMINISTIC
      NO EXTERNAL ACTION
      READS SQL DATA
      RETURN
      with
      CTE1 as(
      select
        xmlelement(name "cte1",
                   xmlattributes(T1.C2 as "Num"),
                   xmlelement(name "test1",'test')
        ) NTRYDTLS
      from T1
      ),
       "DOCUMENT" as(
       select
         XMLELEMENT(name "Document",
           XMLNAMESAPCES(default 'http://posample.org'),
             (select C1 from CTE1)
         ) DOC
        from T1
        )
       select  DOC
        from "DOCUMENT" ;
    
     SELECT *    FROM TABLE(TUDF1( ));
    
    Because the XMLELEMENT in CTE1 doesn't have XMLNAMESPACE, DB2
    did not correctly process the aforementioned SQL statement and
    resulted in ABEND0C4 RC38 at DSNXGXTT OFFSET078E or ABEND0C4 at
    DSNXOV1 OFFSETB25C.
    

Problem conclusion

  • DB2 has been modified to correctly process the aforementioned
    SQL statement.
    
    Additional Keywords: SQLXML SQLVIEW SQLCTE SQLTABLEEXPR SQLTUDF
    SQLTABLEUDF
    

Temporary fix

Comments

APAR Information

  • APAR number

    PI67932

  • Reported component name

    DB2 OS/390 & Z/

  • Reported component ID

    5740XYR00

  • Reported release

    C10

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2016-08-23

  • Closed date

    2016-10-04

  • Last modified date

    2016-11-02

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

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

    UI41395

Modules/Macros

  • DSNXOEX1 DSNXOOS1 DSNXOP0
    

Fix information

  • Fixed component name

    DB2 OS/390 & Z/

  • Fixed component ID

    5740XYR00

Applicable component levels

  • RC10 PSY UI41395

       UP16/10/19 P F610

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

Document Information

Modified date:
02 November 2016