IBM Support

IC88546: DB2CAEM RETURNS SQL0104 WHEN SQL HAS SINGLE QUOTE

Subscribe

You can track all active APARs for this component.

APAR status

  • Closed as program error.

Error description

  • When db2caem is ran with SQL that has single quote, it returns
    error as below:
    
    
    SQL:
    select * from t2 where col1 <> '3'
    
    db2caem -d sample -st "select * from t2 where col1 <> '3'"
    
    Error:
    DBT7028E  "db2caem": The db2caem command failed because the DB2
    database manager
     encountered an error while processing the specified input
    parameters and the sp
    ecified SQL statement. Handle type: "3". Return code: "-1:2162".
               CLIInfo: SQLstate: "42601"
                        Return code: "-104"
                        Diagnostic message: "[IBM][CLI
    Driver][DB2/AIX64] SQL0104N
    An unexpected token "3" was found following "m t2 where col1 <>
    '".  Expected to
    kens may include:  "CONCAT".  SQLSTATE=42601
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * DB2 db2caem tool users                                       *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * See Error Description                                        *
    ****************************************************************
    * RECOMMENDATION:                                              *
    * Upgrade to DB2 Version 9.7 Fix pack 8                        *
    ****************************************************************
    

Problem conclusion

  • Problem first fixed in DB2 Version 9.7 Fix pack 8
    

Temporary fix

Comments

APAR Information

  • APAR number

    IC88546

  • 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

    2012-11-26

  • Closed date

    2013-04-08

  • Last modified date

    2013-04-08

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

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

    IC88551 IC88554 IC91274 IC91770

Fix information

  • Fixed component name

    DB2 FOR LUW

  • Fixed component ID

    DB2FORLUW

Applicable component levels

  • R950 PSY

       UP

  • R970 PSY

       UP

  • R980 PSY

       UP

  • RA10 PSY

       UP



Document information

More support for: DB2 for Linux, UNIX and Windows

Software version: 9.7

Reference #: IC88546

Modified date: 08 April 2013