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

$DATA

1977 Version of ANSI Standard

3.2.8 Functions function

$D[ATA]( glvn )

returns a nonnegative integer which is a characterization of the variable named. The value of the integer is p+d, where:

d = 1 if the named variable has a defined value; d = 0 otherwise;

p = 10 if either:

  1. The named variable exists and contains no subscripts, and there exists (or did exist and was killed) a subscripted variable with the same name, or
  2. The named variable exists and contains n subscripts, and there exists (or did exist and was killed) a subscripted variable with m > n subscripts whose first n subscript values are the same as the values of those in the named variable;

p = 0 otherwise.

See also the transition diagram for $Data.

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 14-Nov-2023, 21:30:56.

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