Special variables -- $TRESTART

$TR[ESTART]

Introduced in the 1995 ANSI M[UMPS] language standard.

The value of this variable identifies the number of transaction restarts that has occurred for the current transaction.

TSTART ():TRANSACTIONID="Demo"
IF '$TRESTART DO
. ; Initialize only once
. QUIT

Whether a restart occurs because of an explicit TRESTART command or because the system encountered consistency problems while processing a TCOMMIT command, the special variable $TRESTART is incremented each time a transaction is restarted.

IF $TRESTART>20 WRITE "Problems..." TROLLBACK QUIT
If a transaction encounters too many restarts, there probably is a reason that can only be resolved externally.


This document is © Ed de Moel, 1995-2005.
It is part of a book by Ed de Moel that is published under the title "M[UMPS] by Example" (ISBN 0-918118-42-5).
Printed copies of the book are no longer available.

This document describes the various special variables that are defined in the M[UMPS] language standard (ANSI X11.1, ISO 11756).

The information in this document is NOT authoritative and subject to be modified at any moment.
Please consult the appropriate (draft) language standard for an authoritative definition.

In this document, information is included that will appear in future standards.
The MDC cannot guarantee that these 'next' standards will indeed appear.