IBM Support

IC77928: CLI0118E INVALID SQL SYNTAX WHEN PARAMETER LISTING CONTAINS NEW LINE CHARACTER

Subscribe

You can track all active APARs for this component.

APAR status

  • Closed as program error.

Error description

  • When a stored procedure is called from a CLI based application
    and the parameter listing has a new line character separating
    parameters, such as after PARAM2 in the following:
    
    CALL SYSPROC.DSNTPSMP('PARAM1', 'PARAM2',
    'CREATE PROCEDURE PROCNAME ( )
        LANGUAGE SQL
    
    The following error may occur:
    CLI0118E  Invalid SQL syntax. SQLSTATE=37000
    

Local fix

  • Remove the new line character and separate the parameters by
    spaces instead.
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * ALL                                                          *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * CLI0118E  INVALID SQL SYNTAX WHEN CALLING A SP WITH          *
    * PARAMETER LISTING THAT CONTAINS NEW LINE CHARACTER.          *
    ****************************************************************
    * RECOMMENDATION:                                              *
    * Upgrade to DB2 Version 9.7 Fix Pack 6                        *
    ****************************************************************
    

Problem conclusion

  • First fixed in DB2 Version 9.7 Fix Pack 6
    

Temporary fix

  • Remove the new line character and separate the parameters by
    spaces instead.
    

Comments

APAR Information

  • APAR number

    IC77928

  • 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

    2011-08-04

  • Closed date

    2012-07-11

  • Last modified date

    2012-07-11

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

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

    IC77956 IC77957

Fix information

  • Fixed component name

    DB2 FOR LUW

  • Fixed component ID

    DB2FORLUW

Applicable component levels

  • R970 PSN

       UP



Document information

More support for: DB2 for Linux, UNIX and Windows

Software version: 9.7

Reference #: IC77928

Modified date: 11 July 2012