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

format in READ and WRITE

1977 Version of ANSI Standard

3.5.4 format in READ and WRITE

The format, which can appear in READ and WRITE commands, specifies output format control. The parameters of format are processed one at a time, in left-to-right order.

    format::=





!
#




!
#


... [ ? intexpr ]

? intexpr




See also the transition diagram for format.

The parameters, which need not be separated by commas when occurring in a single instance of format, may take the following forms.

 !  causes a "new line" operation on the current device. Its effect is the equivalent of writing CR LF on a pure ASCII device. In addition, $X is set to 0 and 1 is added to $Y.
# causes a "top of form" operation on the current device. Its effect is the equivalent of writing CR FF on a pure ASCII device. In addition, $X and $Y are set to 0. When the current device is a display, the screen is blanked and the cursor is positioned at the upper left-hand corner.
? intexpr produces an effect similar to "tab to column intexpr". If $X is greater than or equal to intexpr, there is no effect. Otherwise, the effect is the same as writing (intexpr - $X) spaces. (Note that the leftmost column of a line is column 0.)
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 29-Nov-2011, 20:05:08.

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