Cursor not open

Error constant SQLE_CURSOR_NOT_OPEN
ODBC 2 State 34000
ODBC 3 State 34000
Severity 16
SQLCODE –180
SQLSTATE 24501
Sybase error code 559
Probable cause

You attempted to use a cursor that has not been opened.