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

USE

1990 Version of ANSI Standard

2.6.18 Use

U[SE] postcond SP L useargument

See 2.5.1 for the definition of postcond. See section 1 for the definition of L.

    useargument::=

expr [ : deviceparameters ]
@ expratom V L useargument


See 2.3 for the definition of expr. See 2.6.2 for the definition of deviceparameters. See 2.2 for the definition of expratom. See section 1 for the definition of V. See section 1 for the definition of L.

The value of the first expr of each useargument identifies a device (or file or data set). The interpretation of the value of this expr or of any exprs in deviceparameters is left to the implementor. (See 2.6.2 for the syntax specification of deviceparameters.)

Before a device can be employed in conjunction with an input or output data transfer it must be designated, through execution of a Use command, as the current device. Before a device can be named in an executed useargument, its ownership must have been established through execution of an Open command.

The specified device remains current until such time as a new Use command is executed. As a side effect of employing expr to designate a current device, $IO is given the value of expr.

Specification of device parameters, by means of the exprs in deviceparameters, is normally associated with the process of obtaining ownership; however, it is possible, by execution of a Use command, to change the parameters of a device previously obtained.

Distinct values for $X and $Y are retained for each device. The special variables $X and $Y reflect those values for the current device. When the identity of the current device is changed as a result of the execution of a Use command, the values of $X and $Y are saved, and the values associated with the new current device are then the values of $X and $Y.

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 08-Jan-2024, 12:14:37.

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