Previous Topic: Add an Abort Transaction Action StatementNext Topic: Add a Retry Transaction Action Statement


RETRY TRANSACTION Statement

The RETRY TRANSACTION statement terminates the execution of the procedure step, regardless if the RETRY TRANSACTION statement occurs within an action block or the procedure step itself. It causes an immediate exit, the rolling back of any updates, and the restarting of that procedure step as if that action had never occurred.

The following list details the only differences between the ABORT TRANSACTION statement and the RETRY TRANSACTION statement:

Note: If you issue a retry and have already reached the limit of retries, a fatal error message displays. To avoid this condition, follow this example:

IF TRANSACTION_RETRY_COUNT < TRANSACTION_RETRY_LIMIT 
RETRY TRANSACTION 
ELSE 
EXIT STATE IS WAIT_AWHILE_AND_TRY_AGAIN 
ESCAPE