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

READ

1977 Version of ANSI Standard

READ command

See Read for formal definition.

  1. Result Right Arrow A.
  2. Wait for input from the current device ($IO).
    Proceed after receipt of EOM (End-of-Message) and place input string into variable named in A.
    $X + $L(A) Right Arrow $X.
  3. Wait for input from the current device.
    Proceed after receipt of one character and place the integer character code into variable in A.
    $X + 1 Right Arrow $X.
  4. Set up a timer of Timeout seconds.
    Check for receipt of EOM and proceed if received.
    Otherwise, proceed after receipt of EOM or expiration of timer, whichever occurs first.
  5. Set up a timer of Timeout seconds.
    Check for receipt of one character and proceed if received.
    Otherwise, proceed after receipt of one character or expiration of timer, whichever occurs first.
  6. Place input string into variable named in A.
    True Right Arrow Ifswitch ($TEST).
    $X + $L(A) Right Arrow $X.
  7. Place the integer character code of input into variable named in A.
    True Right Arrow Ifswitch ($TEST).
    $X + 1 Right Arrow $X.
  8. Place the input string so far received into variable named in A.
    False Right Arrow Ifswitch ($TEST).
    $X + $L(A) Right Arrow $X.
  9. Place –1 into variable named in A.
    False Right Arrow Ifswitch ($TEST).
  10. Output Result to the current device.
    $X + $L(Result) Right Arrow $X.
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 16-Nov-2023, 10:07:27.

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