Cursor has not been declared

Error constant SQLE_CURSOR_NOT_DECLARED
ODBC 2 state 24000
ODBC 3 state 24000
Severity 16
SQLCODE -170
SQLSTATE 24W01
Sybase error code 557
 Probable cause
 More information