TREstart

The TRESTART command attempts to RESTART the current transaction. A RESTART transfers control back to the initial TSTART and restores much of the process state to what it was when that TSTART was executed. Errors are produced if a TRESTART is used when no transaction is in progress ($TLEVEL=0) and when the transaction does not have RESTART enabled.

The format for the TRESTART command is:

        TRE[START][:tvexpr]
      

They also restore any local variables named by one or more active TSTARTs to the values they had when they were first named.

For an example of the use of the TRESTART command, refer to the chapter on "General Language Features of M" in this manual.