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

JOB

M[UMPS] by Example

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 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,

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-2024 MUMPS Development Committee;
Copyright © Examples: 1995-2024 Ed de Moel;
Copyright © Annotations: 2003-2008 Jacquard Systems Research
Copyright © Annotations: 2008-2024 Ed de Moel.

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 14-Nov-2023, 21:37:03.

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