COMMIT/ROLLBACK not allowed within atomic operation

Error constant SQLE_ATOMIC_OPERATION
ODBC 2 State 37000
ODBC 3 State 42000
Severity 16
SQLCODE –267
SQLSTATE 42W28
Sybase error code 13640
Probable cause

You attempted a COMMIT or ROLLBACK statement while executing within an atomic operation.