IBM Data and AI

Welcome to the IBM Data and AI Ideas Portal for Clients!

We welcome and appreciate your feedback on IBM Data and AI Products to help make them even better than they are today!
Before you submit an idea, please perform a search first as a similar idea may have already been reported in the portal. If a related idea is not yet listed, please create a new idea and include with it a description which includes expected behavior as well as why having this feature would improve the service and how it would address your use case.
IBM Employees:
  • Our team welcomes any feedback and suggestions you have for improving our offerings / products! This forum allows us to connect your offering / product improvement ideas with IBM product and engineering teams.

  • If you have not registered on this portal please click on the following link and register. To complete registration you will need to open the email you will receive from Aha to confirm your identity.

Additional Information:
  • The shorter URL for this site is:

  • To view our roadmaps:

  • Reminder: This is not the place to submit defects or support needs, please use normal support channel for these cases

  • Please do not use the Ideas Portal for reporting bugs - we ask that you report bugs or issues with the product by contacting IBM support.

Add more debug information for error [22001] [IBM] [DB2/NT64] SQL0302N

Ticket TS003868349

In a real-life application, I had a headache with error [22001] [IBM] [DB2/NT64] SQL0302N "The value of a host variable in the EXECUTE or OPEN statement is too large for its corresponding use."

Namely, in an application which deals with millions of insert / updates, there was an error with an insert / update or an open cursor.

But, nothing helps the developer to find which data causes the problem.

The support didn't achieve to help us, so I had to spend a lot of time to find the problem.

If this error could give more information at the time of the error, just give a trace of the host variable which causes trouble.

The real life error was a bad phone number !!! I could have found the error immediatly if only I had a trace of this string which gave troubles.

  • Avatar32.5fb70cce7410889e661286fd7f1897de Guest
  • Aug 18 2020
  • Future consideration
Who would benefit from this IDEA? Everyone which encounters this error
How should it work?

Just give complete trace just after the error display

example :

error [22001] [IBM] [DB2/NT64] SQL0302N "The value of a host variable in the EXECUTE or OPEN statement is too large for its corresponding use." Host variable : " contact ├ętabli" is not valid in this context

Idea Priority Medium
Priority Justification It could be done without any efforts. But it can solve the problem in seconds, instead of searching for days.
Customer Name Polyedre
  • Attach files

NOTICE TO EU RESIDENTS: per EU Data Protection Policy, if you wish to remove your personal information from the IBM ideas portal, please login to the ideas portal using your previously registered information then change your email to "anonymous@euprivacy.out" and first name to "anonymous" and last name to "anonymous". This will ensure that IBM will not send any emails to you about all idea submissions