No current row of cursor

Item Value
SQLCODE -197
Constant SQLE_NO_CURRENT_ROW
SQLSTATE 24503
Sybase error code 560
ODBC 2 State 24000
ODBC 3 State 24000

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.