IBM Support

PM16273: DSNT4081 SQLCODEN104 EXPLAIN SELECT STATEMENTS

A fix is available

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Issuing EXPLAIN generates messages ANL1009W and ANL0003T and
    error msg DSNT408I SQLCODE = -104, ERROR:  ILLEGAL SYMBOL ")"
    on the following SQL statement in DBRM ;
    
    DECLARE CSR1 CURSOR FOR
      (SELECT ... FROM T1,T2,... WHERE ...)
      UNION ALL
      (SELECT ... FROM T3,T4,... WHERE ...)
      ORDER BY ...
    
    The first parenthesis of the first UNION leg is stripped off,
    then the statement goes wrong as below;
    
       SELECT ... FROM T1,T2,... WHERE ...)
      UNION ALL
      (SELECT ... FROM T3,T4,... WHERE ...)
      ORDER BY ...
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED: All users of SQLPA.                          *
    ****************************************************************
    * PROBLEM DESCRIPTION: ((                                      *
    *                      Issuing EXPLAIN generates messages      *
    *                      ANL1009W and ANL0003T and               *
    *                      error msg DSNT408I                      *
    *                      SQLCODE = -104, ERROR:                  *
    *                      ILLEGAL SYMBOL ")" on the following     *
    *                      SQL statement in DBRM ;                 *
    *                                                              *
    *                      DECLARE CSR1 CURSOR FOR                 *
    *                      (SELECT ... FROM T1,T2,... WHERE ...)   *
    *                      UNION ALL                               *
    *                      (SELECT ... FROM T3,T4,... WHERE ...)   *
    *                      ORDER BY ...                            *
    *                                                              *
    *                      The first parenthesis of the first      *
    *                      UNION leg is stripped off,              *
    *                      then the statement goes wrong as        *
    *                      below:                                  *
    *                                                              *
    *                       SELECT ... FROM T1,T2,... WHERE ...)   *
    *                      UNION ALL                               *
    *                      (SELECT ... FROM T3,T4,... WHERE ...)   *
    *                      ORDER BY ...                            *
    *                                                              *
    ****************************************************************
    * RECOMMENDATION: APPLY the PTF.                               *
    ****************************************************************
    Code has been changed to correct this condition.
    

Problem conclusion

  • Apply the PTF.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PM16273

  • Reported component name

    DB2 SQL PERF AN

  • Reported component ID

    5697F5701

  • Reported release

    320

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2010-06-09

  • Closed date

    2010-06-15

  • Last modified date

    2010-07-02

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

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

    UK57991

Modules/Macros

  •    ANLPGM31
    

Fix information

  • Fixed component name

    DB2 SQL PERF AN

  • Fixed component ID

    5697F5701

Applicable component levels

  • R320 PSY UK57991

       UP10/06/18 P F006

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.

[{"Line of Business":{"code":"LOB10","label":"Data and AI"},"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SSZJXP","label":"DB2 Tools for z\/OS"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"320"}]

Document Information

Modified date:
18 March 2021