CDO> DEFINE RECORD HOUSEHOLD.
cont> ANNUAL_INCOME.
cont> ADDRESS.
cont> NUMBER_OF_DEPENDENTS.
cont> DEPENDENTS STRUCTURE OCCURS 1 TO 10 TIMES
cont> DEPENDING ON NUMBER_OF_DEPENDENTS IN HOUSEHOLD.
cont> NAME.
cont> AGE.
cont> SEX.
cont> END DEPENDENTS STRUCTURE.
cont> END HOUSEHOLD RECORD.
In this example, the OCCURS...DEPENDING clause in the
DEPENDENTS structure specifies that the structure occurs 1 to
10 times based on the value of the NUMBER_OF_DEPENDENTS field
definition in the HOUSEHOLD record element at runtime.