Results 1 to 3 of 3
  1. #1
    Join Date
    May 2013
    Posts
    10

    Unanswered: SQL0302N The value of a host variable in the EXECUTE or OPEN statement is too large

    Hello,

    I am calling DB2 stored procedure and getting follwoing error.


    Exception in thread "main" COM.ibm.db2.jdbc.DB2Exception: [IBM][CLI Driver][DB2] SQL0302N The value of a host variable in the EXECUTE or OPEN statement is too large for its corresponding use. SQLSTATE=22001

    at COM.ibm.db2.jdbc.app.SQLExceptionGenerator.throw_S QLException(Unknown Source)
    at COM.ibm.db2.jdbc.app.SQLExceptionGenerator.throw_S QLException(Unknown Source)
    at COM.ibm.db2.jdbc.app.SQLExceptionGenerator.check_r eturn_code(Unknown Source)
    at COM.ibm.db2.jdbc.app.DB2PreparedStatement.execute2 (Unknown Source)
    at COM.ibm.db2.jdbc.app.DB2PreparedStatement.executeQ uery(Unknown Source)
    at .db2.connection.DB2Connection2.callDB2StoredProced ure(DB2Connection2.java:113)
    at .db2.connection.DB2Connection2.main(DB2Connection2 .java:141)


    What may be the root cause for the same,

    Thanks,

    Aradhya

  2. #2
    Join Date
    Apr 2006
    Location
    Belgium
    Posts
    2,514
    Provided Answers: 11
    if you would publish the sp-code and the table ddl .. it might be more clear..
    Best Regards, Guy Przytula
    Database Software Consultant
    Good DBAs are not formed in a week or a month. They are created little by little, day by day. Protracted and patient effort is needed to develop good DBAs.
    Spoon feeding : To treat (another) in a way that discourages independent thought or action, as by overindulgence.
    DB2 UDB LUW Certified V7-V8-V9-V9.7-V10.1-V10.5 DB Admin - Advanced DBA -Dprop..
    Information Server Datastage Certified
    http://www.infocura.be

  3. #3
    Join Date
    May 2013
    Posts
    10
    Thanks for reply,

    Actually i could figure out whats the error all about.

    The value i am passing as parameter in sp, was larger then size of parameter.

    Thanks again.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •