IBM Support

PI40663: ERRORS WHEN RUNNING A COMPLEX REPORT AGAINST DB2: XQE-DAT-0001,SQLSYNTAXERROREXCEPTION, SQLCODE=-104, SQLSTATE=42601

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • When running a complex report based on a dynamic query mode
    package against DB2, a SQL syntax exception is thrown:
    
    XQE-DAT-0001 Data source adapter error: com.ibm.db2.jcc.am.
    SqlSyntaxErrorException: DB2 SQL Error: SQLCODE=-104,
    SQLSTATE=42601,
    SQLERRMC=DESCFOR;
    
    The SQLERRMC part of the error may vary slightly - the issue is
    caused by a missing space before the last FOR FETCH ONLY clause
    in the SQL query.  In this example, the last keyword before the
    FOR FETCH ONLY clause was the DESC keyword from an ORDER BY
    clause, resulting in the invalid keyword DESCFOR.
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * All Users                                                    *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * See error description.                                       *
    ****************************************************************
    * RECOMMENDATION:                                              *
    * Upgrade to IBM Cognos Business Intelligence 10.2.2 Fix Pack  *
    * 2                                                            *
    ****************************************************************
    

Problem conclusion

  • Code Fix
    

Temporary fix

Comments

APAR Information

  • APAR number

    PI40663

  • Reported component name

    COG REPORT STUD

  • Reported component ID

    5724W12RS

  • Reported release

    A21

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2015-05-07

  • Closed date

    2015-07-16

  • Last modified date

    2015-07-16

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

    PI40648

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

Fix information

  • Fixed component name

    COG REPORT STUD

  • Fixed component ID

    5724W12RS

Applicable component levels

  • RA22 PSN

       UP

[{"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SSCHNWW","label":"Report Authoring v11x"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"A21","Edition":"","Line of Business":{"code":"","label":""}}]

Document Information

Modified date:
16 July 2015