Button for 1977 Button for 1984 Button for 1990 Button for 1995 Button for MDC Button for notes Button for examples
Left Hand Pointer

$TRESTART

M[UMPS] by Example

Right Hand Pointer

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.

Button for 1977 Button for 1984 Button for 1990 Button for 1995 Button for MDC Button for notes Button for examples

Copyright © Standard Documents; 1977-2017 MUMPS Development Committee;
Copyright © Examples: 1995-2017 Ed de Moel;
Copyright © Annotations: 2003-2017 Jacquard Systems Research.

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

Some specifications are "approved for inclusion in a future standard". Note that the MUMPS Development Committee cannot guarantee that such future standards will indeed be published.

This page most recently updated on 13-Sep-2014, 07:18:08 .

For comments, contact Ed de Moel (demoel@jacquardsystems.com)