Skip to content

$ZMOde

$ZMOde

$ZMO[DE] contains a string value indicating the process execution mode.

The mode can be:

  • INTERACTIVE - process not started by a JOB command
  • OTHER - process started by a JOB command

M routines cannot modify $ZMODE.

Example:

GTM>WRITE $ZMODE
INTERACTIVE

Example:

> cat mode.m
mode;
        write $zmode,!
        quit
> mumps -run mode
INTERACTIVE

Example:

GTM>job ^mode

> cat mode.mjo
OTHER