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

$DATA

Draft MDC Standard

7.1.5.3 $Data

$D[ATA] ( glvn )

This form returns a non-negative integer which is a characterization of the glvn. The value of the integer is p + d, where:

d = 1

if the glvn has a defined value, i.e., the NAME-TABLE entry for the name of the glvn exists, and the subscript tuple of the glvn has a corresponding entry in the associated DATA-CELL; otherwise, d=0.

p = 10

if the variable has descendants; i.e., there exists at least one tuple in the glvn’s DATA-CELL which satisfies the following conditions:

  1. The degree of the tuple is greater than the degree of the glvn, and
  2. the first N descriptors of the tuple are equal to the corresponding subscripts of the glvn where N is the number of subscripts in the glvn.

    If no NAME-TABLE entry for the glvn exists, or no such tuple exists in the associated DATA-CELL, then p=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.

Some specifications are "approved for inclusion in a future standard". Note that the MUMPS Development Committee cannot guarantee that such future standards will indeed be published.

This page most recently updated on 14-Nov-2023, 21:30:56.

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