Measure Reference Manual

contab
input
INT .EXT:ref:*
is an array that defines the measurement configuration. The contab array contains a header
section, an entity descriptor section for each entity type, and a trailer section:
CONTAB^HDR
...
maxents
entitydesc_1
[ entitydesc_2
...
entitydesc_n ]
CONTAB^TRAILER
...
len
Structure definitions for use in the contab array are defined in the MEASDECS file. MEASDECS
declares both a literal and a numeric identifier for each entity type and for the header and
trailer records.
CONTAB^HDR
describes the contents of the contab array.
Struct Contab^hdr (*)
Begin
Int Type; ! Set to CONTAB^T
Int Len; ! Byte length of entire contab
Int Sections[0:MAX^T]; ! Byte offset from Contab^hdr.Type to
! start of descriptor section
Int Maxents = Sections; ! Maximum entity types known to the
! user; this is used to identify the
! version of the contab.
Filler 8; ! Reserved for future use
End;
type
INT:value:1
identifies the header section of the contab array. Specify type as the literal
CONTAB^T or the numeric identifier 50.
len
INT:value:1
is the length in bytes of the entire contab array. The maximum length is 32,000 bytes,
including the header and the trailer.
sections
INT:value:MAX^T+1
is an array of byte offsets to each section of the contab array. The array elements are
in entity-type order, as shown in Table 6: Entity Descriptors and Type Values (page 452).
Specify the first byte offset (array element 0) as 0. If you omit a section of the contab
array, specify the byte offset for that section as 0.
maxents
INT:value:1
identifies the header format. This field is equated to SECTIONS[0], so it does not add
to the length of CONTAB^HDR. The maxents field does not need to be filled in by
the user. MEASCONFIGURE fills this field based on the descriptors that the user supplies.
384 Measure Callable Procedures