IBM Support

IZ28246: SQL0104 WHEN CALLING STORED PROCEDURE WITH A SEMI-COLON

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Calling a stored procedure containing a semi-colon will return
    SQL0104 after applying DB2 v8 FixPak 12 or higher.  DB2 v9 GA is
    also affected.  This issue occurs only when connecting to DB2
    for z/OS.
    
    CLI traces will show that the SQL statement is truncated.  This
    issue can be reproduced regardless of whether
    the internal SYSIBM.SQLPROCEDURECOLS is called.
    
    SQLPrepareW( hStmt=1:1, pszSqlStr=" call TESTSP(?,?,? );",
    cbSqlStr=22 )
    ---> Time elapsed - +1.656000E-003 seconds
    ( StmtOut="CALL TESTSP(?,?,?" )
    

Local fix

  • Change application by removing the semi-colon from the CALL
    command or add curly braces around the call command i.e. {CALL
    TESTSP(?,?,?);}
    

Problem summary

  • Users Affected:  CLI applications.
    Problem Description:  SQL0104N when invoking a stored procedure
    using the CALL command with a semi-colon at the end of the CALL
    command.
    

Problem conclusion

  • First fixed in DB2 UDB Version 9.5, FixPak 2
    

Temporary fix

Comments

APAR Information

  • APAR number

    IZ28246

  • Reported component name

    DB2 UDB ESE SOL

  • Reported component ID

    5765F4102

  • Reported release

    950

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2008-07-25

  • Closed date

    2008-08-29

  • Last modified date

    2008-08-29

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

    IZ07096

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

Fix information

  • Fixed component name

    DB2 UDB ESE SOL

  • Fixed component ID

    5765F4102

Applicable component levels

  • R950 PSN

       UP

[{"Line of Business":{"code":"LOB10","label":"Data and AI"},"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SSEPGG","label":"DB2 for Linux- UNIX and Windows"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"950"}]

Document Information

Modified date:
03 October 2021