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

$IO

M[UMPS] by Example

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

The value of this variable identifies the current input/output device.

New %IO Set %IO=$IO
Use OTHERDEV
Do ANYTHING
Use %IO

would make it possible to stack the usage of a device-specifier.

Note that common practice like:
For ... Use ONEDEV Do SUB1 Use OTHERDEV Do SUB2 ...
is a situation where stacking of device-specifiers makes little or no sense.

Approved for addition in a future M[UMPS] Language Standard.

The initial value of $IO is equal to the value of $Principal if the implementation executes implicit Open and Use commands while creating a job, so that the initial current device is indeed the device identified by the value of $Principal. Otherwise, the initial value of $IO is the empty string.

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 13-Sep-2014, 08:20:51.

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