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

You used a SELECT statement with no INTO clause or a RESULT CURSOR statement within an atomic compound statement.