Database Error Messages

SQL-02151

Invalid host variable for exact numeric SET statement item

Cause

An host variable with an invalid type or length was used to get or set an exact numeric item in an ANSI dynamic statement.


Action

Make sure your host variable is and int or short for C or for COBOL, S9(4) or S9(9) binary/comp/display sign leading separate.