In SSIS each and every component will commit its transaction after it got executed. But if we have a scenario where the commit should take place only after a set of component execution in ETL and for this we have an option in the Connection Object – > Properties -> Set RetainSameConnection as True.
This will ensure to commit only if all the components went success belongs to the same connection object.
You can give explicit commit statement like
Rollback Transaction -> This you can write under the ONERROR event