Cursor already open

Error constant SQLE_CURSOR_ALREADY_OPEN
ODBC 2 State 24000
ODBC 3 State 24000
Severity 16
SQLCODE –172
SQLSTATE 24502
Sybase error code 558
Probable cause

You attempted to OPEN a cursor that is already open.