You can add input/output ports to a Transaction Controltransformation.
You can define the transaction control expression, which flagstransactions for commit, roll back, or no action.
Metadata Extensions tab.
You can extend the metadata stored in therepository by associating information with the Transaction Controltransformation.
On the Properties tab, you can configure the following properties:Transaction control expressionTracing levelEnter the transaction control expression in the Transaction Control Conditionfield. The transaction control expression uses the IIF function to test each rowagainst the condition. Use the following syntax for the expression:IIF (condition, value1, value2)The expression contains values that represent actions the Integration Serviceperforms based on the return value of the condition. The Integration Serviceevaluates the condition on a row-by-row basis. The return value determineswhether the Integration Service commits, rolls back, or makes no transactionchanges to the row. When the Integration Service issues a commit or roll backbased on the return value of the expression, it begins a new transaction. Use thefollowing built-in variables in the Expression Editor when you create a transactioncontrol expression:
The Integration Service does not performany transaction change for this row. This is the default value of the expression.
The Integration Service commits the transaction,begins a new transaction, and writes the current row to the target. The currentrow is in the new transaction.
The Integration Service writes the current row to thetarget, commits the transaction, and begins a new transaction. The current rowis in the committed transaction.
The Integration Service rolls back the currenttransaction, begins a new transaction, and writes the current row to the target.The current row is in the new transaction.
The Integration Service writes the current row to thetarget, rolls back the transaction, and begins a new transaction. The current rowis in the rolled back transaction.If the transaction control expression evaluates to a value other than commit, rollback, or continue, the Integration Service fails the session.
You want to use transaction control to write order information based on the order entry date. You want to ensure that all orders entered on any given date arecommitted to the target in the same transaction. To accomplish this, you cancreate a mapping with the following transformations: