Result set not allowed from within an atomic compound statement

Error constant SQLE_RESULT_NOT_ALLOWED
ODBC 2 state ERROR
ODBC 3 state ERROR
Severity 16
SQLCODE -222
SQLSTATE 3BW02
Sybase error code 13655
 Probable cause