No current row of cursor

Error constant SQLE_NO_CURRENT_ROW
ODBC 2 State 24000
ODBC 3 State 24000
Severity 16
SQLCODE –197
SQLSTATE 24503
Sybase error code 560
Probable cause

You attempted to perform an operation on the current row of a cursor, but the cursor is not positioned on a row. The cursor is before the first row of the cursor, after the last row, or is on a row that has since been deleted.