To define an action to be executed after each Transaction’s cycle.

Syntax

Event After Trn
        Event_code
EndEvent

Where:

Event_code
    Code associated with the event.

Description

This event is activated once the transaction has ended a cycle;  that is: immediately after Commit.

Examples

We may want to return to the calling program after entering a transaction:

Event After Trn
    Return
EndEvent

To print a card with the transaction during a Transaction session, and to update the last operation in a log file system, we could program the following events:

Event After Trn
     PrintAirlineCard.Call(AirlineId)
     UpdateLogAirline.Call(AirlineId, &TimeEnter, &TimeExit)
EndEvent

Scope

Objects: Transactions
Languages: .NET, Ruby, Java, RPG, Visual Basic, Visual FoxPro, Cobol

See Also

AfterComplete Event