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
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