Illegal cursor operation attempt

Error constant SQLE_CURSOROP_NOT_ALLOWED
ODBC 2 state 07005
ODBC 3 state 07005
Severity 16
SQLCODE -187
SQLSTATE 09W02
Sybase error code 9526
 Probable cause