M[UMPS] Commands

J[OB]

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

JOB LABEL^ROUTINE::20
This command will attempt to create a new M[UMPS] process. If this cannot be completed within the time-out period (20 seconds), the special variable $TEST is set to false. If the process is created, the special variable $TEST is set to true. The newly created process will start processing the specified routine at the specified label.

JOB LABEL^ROUTINE
Execution is suspended until a new M[UMPS] process is successfully created. The newly created process will start processing the specified routine at the specified label.

Addition in the 1984 ANSI M[UMPS] language standard.

JOB LABEL^ROUTINE(12,34,56)
Execution is suspended until a new M[UMPS] process is successfully created.
The newly created process will start processing the specified routine at the specified label. Initial values for the formal parameters specified in the parameterlist at the specified label are passed (by value).

Approved for addition in a future ANSI M[UMPS] language standard.

Jobs may be executed in a different environment.

JOB LABEL^ROUTINE
fetches the routine from the current routine environment and executes it in the current environment.

JOB LABEL^|"SPECIAL"|ROUTINE
fetches the routine from the environment called "SPECIAL" and executes it in the current environment.

JOB |"ELSEWHERE"|LABEL^ROUTINE
fetches the routine from the current routine environment and executes it in the environment called "ELSEWHERE".

JOB |"ELSEWHERE"|LABEL^|"SPECIAL"|ROUTINE
fetches the routine from the environment called "SPECIAL" and executes it in the environment called "ELSEWHERE".

Examples with naked references:

JOB ENTRYREF
SET ^ABC(1,2)="reset naked indicator"
; Naked indicator is now ^ABC(1,
JOB @^(3,4)

; Naked indicator is now: ^ABC(1,3,
; Actual reference is: ^ABC(1,3,4)

JOB ENTRYREF:PARAMETERS
SET ^ABC(1,2)="reset naked indicator"
; Naked indicator is now ^ABC(1,
JOB @^(3,4):^(5,6)
; Naked indicator is now: ^ABC(1,3,
; 1. fetch ^(3,4) = ^ABC(1,3,4)
; 2. fetch ^(5,6) = ^ABC(1,3,5,6)
; Naked indicator is now: ^ABC(1,3,5,


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 appear in future standards.
The MDC cannot guarantee that these 'next' standards will indeed appear.