HomeDB2DB2 Error Code – -303 a value cannot be assigned to output host variable number position-number because the data types are not comparable

DB2 Error Code – -303 a value cannot be assigned to output host variable number position-number because the data types are not comparable

In this post, you’ll learn about the error message -303 a value cannot be assigned to output host variable number position-number because the data types are not comparable in the IBM DB2 database , the reason why it occurs along with the solution to fix it

IBM DB2 Error Message

-303 a value cannot be assigned to output host variable number position-number because the data types are not comparable

Reason for the Error

A FETCH or SELECT into the output host variable, whose entry in the output SQLDA is indicated by ‘position-number’, could not be performed because the data type of the variable was not compatible with the data type of the corresponding SELECT-list element.� The output host variable and the corresponding SELECT-list element must fall in one of the following categories:� *�� Both values must be numbers. *�� Both values must be character strings. *�� Both values must be graphic strings.� In addition, for datetime, and timestamp values, the host variable must be a character string variable with a proper length.

Solution

Verify that table definitions are current, and that the host variable has the proper data type.

Share:

Leave A Reply

Your email address will not be published. Required fields are marked *

You May Also Like

In this post, you’ll learn about the error message -952 processing was interrupted by a cancel request from a client...
  • DB2
  • November 21, 2022
In this post, you’ll learn about the error message -927 the langrage interface was called when the connecting environment was...
  • DB2
  • November 21, 2022
In this post, you’ll learn about the error message -926 rollback not valid in ims/vs or cics environment in the...
  • DB2
  • November 21, 2022