ROLLBACK TO SAVEPOINT not allowed

Error constant SQLE_ROLLBACK_NOT_ALLOWED
ODBC 2 State ERROR
ODBC 3 State ERROR
Severity 16
SQLCODE –221
SQLSTATE 3B002
Sybase error code 13654
Probable cause

You attempted a ROLLBACK TO SAVEPOINT within an atomic operation to a savepoint established before the atomic operation.