TROllback

The TROLLBACK command terminates a transaction by initiating a rollback that removes all database updates performed within the transaction. When used without an argument or a zero (0) argument, TROLLBACK sets both $TLEVEL and $TRESTART to zero (0). If an application issues a TROLLBACK when no transaction is in progress ($TLEVEL=0), GT.M reports an error.

The format of the TROLLBACK command is:

TRO[LLBACK][:tvexpr] [intexpr]

For an example of the use of the TROLLBACK command, see Chapter 5: “General Language Features of M.