-301 THE VALUE OF INPUT VARIABLE OR ARGUMENT NUMBER position-number CANNOT BE USED AS SPECIFIED BECAUSE OF ITS DATA TYPE

Explanation

Db2 received data that could not be used as specified in the statement because its data type is incompatible with the requested operation.

The position-number identifies either the variable number (if the message is issued as a result of an INSERT, UPDATE, MERGE, DELETE, SELECT, VALUES INTO, or SET assignment statement), or the argument number (if the message is issued as the result of a CALL statement, or the invocation of a function).

For a statement other than CALL, an ordinary array cannot be specified for a target that is defined as an associative array in the specified context. See CALL for the exceptions for a CALL statement.

System action

The statement cannot be processed.

Programmer response

Correct the application program, function or stored procedure. Ensure that the data type of the indicated input variable or argument in the statement is compatible with the way it is used.

SQLSTATE

42895