3-10-2 Structures

All elements allocated by a single storage definition statement must be of the same type (bytes, words, or doublewords). It is desirable, especially in business data processing applications, for a variable to have several fields, with each field having its own type.

Figure 3-59 Fields in a typical personnel record data structure.

A structure definition gives the pattern of the structure and may have the simplified form

Structure name     STRUC
     .
     .    Sequence of DB, DW, and DD directives
     .
Structure name     ENDS

If a DB, DW, or DD statement includes a variable identifier, it denotes the beginning of a field and is referred to as a field identifier.


Table of Contents | Next page | Previous page

This is page 44.