Could not change an opened prepared statement or callable statement

Error constant SQLE_CANNOT_CHANGE_OPENED_STATEMENT
ODBC 2 State ERROR
ODBC 3 State ERROR
Severity 16
SQLCODE –694
SQLSTATE WJ008
Sybase error code 13603
Probable cause

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