IBM Support

IC99823: -901 FROM RUNNING A QUERY.

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Some necessary conditions to hit the problem are:
    The query is in a pattern of
    SELECT FROM (<SUBQUERY1> as A, (SELECT FROM WHERE <ANYCOL> IN
    <SUBQUERY2>) as B) WHERE A.col1 = B.col1 GROUP BY A.col2;
    
    here,
    SUBQUERY1 = SELECT col1, col2 from <SUBQUERY3> GROUP BY col1,
    col2
    SUBQUERY2 = SELECT DISTINCT col1 from <SUBQUERY3>
    SUBQUERY3 = SELECT col1, col2 from <base tables> WHERE
    <ANYPREDICATES>
    

Local fix

  • Manually rewrite SUBQUERY2 from "SELECT DISTINCT col1 from
    <SUBQUERY3>" to "SELECT col1 from <SUBQUERY3> GROUP BY col1".
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * v9.7                                                         *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * Some necessary conditions to hit the problem are:            *
    * The query is in a pattern of                                 *
    * SELECT FROM (<SUBQUERY1> as A, (SELECT FROM WHERE <ANYCOL>   *
    * IN                                                           *
    * <SUBQUERY2>) as B) WHERE A.col1 = B.col1 GROUP BY A.col2;    *
    *                                                              *
    * here,                                                        *
    * SUBQUERY1 = SELECT col1, col2 from <SUBQUERY3> GROUP BY      *
    * col1,                                                        *
    * col2                                                         *
    * SUBQUERY2 = SELECT DISTINCT col1 from <SUBQUERY3>            *
    * SUBQUERY3 = SELECT col1, col2 from <base tables> WHERE       *
    * <ANYPREDICATES>                                              *
    ****************************************************************
    * RECOMMENDATION:                                              *
    * apply fp10                                                   *
    ****************************************************************
    

Problem conclusion

  • fixed in fp10.
    

Temporary fix

  • n/a
    

Comments

APAR Information

  • APAR number

    IC99823

  • Reported component name

    DB2 FOR LUW

  • Reported component ID

    DB2FORLUW

  • Reported release

    970

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2014-03-04

  • Closed date

    2015-02-18

  • Last modified date

    2015-02-18

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

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

    IT00506 IT02242

Fix information

  • Fixed component name

    DB2 FOR LUW

  • Fixed component ID

    DB2FORLUW

Applicable component levels

  • R970 PSY

       UP

[{"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SSEPGG","label":"DB2 for Linux, UNIX and Windows"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"9.7","Edition":"","Line of Business":{"code":"LOB10","label":"Data and AI"}}]

Document Information

Modified date:
18 February 2015