Input parameter index out of range

Error constant SQLE_BAD_PARAM_INDEX
ODBC 2 State ERROR
ODBC 3 State ERROR
Severity 16
SQLCODE –689
SQLSTATE WJ005
Sybase error code 13717
Probable cause

The range for valid parameters is from 1 up to the number of host variables specified in the prepared/callable statement.