Introduced in the 1977 ANSI M[UMPS] language standard.
The definition of the XECUTE command states that the command XECUTE X is equivalent to the command DO UNIQUENAME where the routine would contain a subroutine like:
<value of x>
This equivalence will make it easier to understand what happens in the following examples.
SET X="WRITE ABC"
The value of local variable ABC will be written.
SET X="SET X=1 QUIT:A SET X=3"
The QUIT command terminates the subroutine inside the eXECUTEd string, and does not terminate the subroutine from which the string is XECUTEd.
SET X="SET X=1 GOTO PQR SET X=3"
XECUTE X WRITE "Back here"
The GOTO command transfers command to label PQR. When a QUIT command is executed following that label, that QUIT command would return control to the statement following the XECUTE command, and the text "Back here" will be printed.
SET FIRST="SET X=3 "
SET SECOND=" SET A=2 "
SET THIRD="SET Q=999 "
IF SPECIAL SET THIRD=" SET P=888 "
There may be spaces at the end of a line of executeable code
Examples with naked references:
SET ^ABC(1,2)="reset naked indicator"
; Naked indicator is now ^ABC(1,
; Naked indicator is now: ^ABC(1,3,
; Actual reference is: ^ABC(1,3,4)
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 commands 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
The MDC cannot guarantee that these 'next' standards will indeed appear.