COMMIT/ROLLBACK not allowed within atomic operation

Item Value
SQLCODE -267
Constant SQLE_ATOMIC_OPERATION
SQLSTATE 42W28
Sybase error code 13640
ODBC 2 State 37000
ODBC 3 State 42000

Probable cause 

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