Could not change an opened prepared statement or callable statement

Item Value
SQLCODE -694
Constant SQLE_CANNOT_CHANGE_OPENED_STATEMENT
SQLSTATE WJ008
Sybase error code 13603
ODBC 2 State ERROR
ODBC 3 State ERROR

Probable cause 

You attempted to change the SQL statement of an opened prepared statement or callable statement. Prepared statement and callable statement must be closed before attempting such changes.