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

Environment (Job)

1995 Version of ANSI (Equivalent to Current ISO Version) of Standard

7.1.3.9 ssvns specifying default environments

The following ssvns, specifying default environments, are defined. This clause pertains to the following three ssvns:

^$Job( processid , "GLOBAL" ) default global variable environment
^$Job( processid , "Lock" ) default lock environment
^$Job( processid , "ROUTINE" ) default routine environment

A process may always obtain and assign a value to these nodes, where processid = $Job. However, for technical reasons or security concerns, implementations may restrict access to these nodes for processids other than the current processid. An attempt to violate this restriction causes an error condition with an implementor-specified ecode beginning with “Z”.

When a process starts, the values of these ssvns are, in general, defined by the implementation. However, a process initiated by a Job command begins with the routine environment specified in the Job command, if any. If the command did not specify one, then the initiated process inherits the default routine environment of the initiating process.

Explicit qualification of a labelref, routineref, gvn, or nref with an environment overrides the default environment for that one reference.

Assigning a non-existent environment to one of these ssvns is not in itself erroneous. However, an attempt to refer to a routine, global, or lock in the non-existent environment causes an error condition with an ecode = “M26”.

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.

This page most recently updated on 18-Nov-2023, 11:36:09.

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