Format OCCURS n TIMES [ INDEXED BY index-name [ , index-name ] ... ]
1 – Parameters
1.1 – n
Specifies the number of occurrences of the array. This number is greater than zero.
1.2 – index-name
Specifies the field element that functions as an index.
2 – Description
The OCCURS field property declares one or more fixed-length, one-dimensional arrays. The n value represents the upper bound of the array; the lower bound is always 1. Use the ARRAY field property to specify a lower bound other than 1.
3 – Examples
1.CDO> DEFINE FIELD MULTIPLE cont> OCCURS 3 TIMES cont> DATATYPE IS SIGNED LONGWORD. In this example, the OCCURS field property in the DEFINE FIELD command creates the MULTIPLE field element, which occurs 3 times. 2.CDO> CHANGE FIELD MULTIPLE cont> NOOCCURS. In this example, the NOOCCURS keyword removes the OCCURS property from the MULTIPLE field element.