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

Values of Subscripts

1977 Version of ANSI Standard

2.2.3 Values of Subscripts

Local variable subscript values are nonnegative integer values, as defined in Section 3.2.4.1 of the MUMPS Language Specification (also see Section 2.6 below). This restriction is equivalent to the following.

Any local variable subscript value meets the following criteria:

  1. It may contain only digits;
  2. At least one digit must be present;
  3. The number zero is represented by "0";
  4. Except for the respresentation of zero, the string of digits must have no leading zeros;
  5. Its numeric value must be within the integer range stated in Section 2.6.

The use of subscript values which do not meet these criteria is undefined, with the exception of the use of the value "–1" as the last subscript of a reference within the context of the $NEXT function. Note that an implicit integer interpretation of a subscript value is not performed; where desired, this may be accomplished by using the unary plus operator.

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 13-Sep-2014, 12:04:00.

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