You define an array on a definition specification. Here are the essential specifications for all arrays:
Specify the array name in positions 7 through 21
Specify the number of entries in the array using the DIM keyword
Specify length, data format, and decimal positions as you would any scalar fields. You may specify explicit From- and To-position entries (if defining a subfield), or an explicit Length-entry; or you may define the array attributes using the LIKE keyword; or the attributes may be specified elsewhere in the program.
If you need to specify a sort sequence, use the ASCEND or DESCEND keywords.
Figure 68 shows an example of the essential array specifications.