Variable-length tables are specified using the OCCURS DEPENDING ON clause.
Format 2: variable-length tables >>-OCCURS--+---------------+--integer-2--+-------+--DEPENDING---> '-integer-1--TO-' '-TIMES-' >--+----+--data-name-1------------------------------------------> '-ON-' .------------------------------------------------------. V | >----+--------------------------------------------------+-+-----> | .-------------. | | V | | '-+-ASCENDING--+--+-----+--+----+----data-name-2-+-' '-DESCENDING-' '-KEY-' '-IS-' >--+-----------------------------------+----------------------->< | .--------------. | | V | | '-INDEXED--+----+----index-name-1-+-' '-BY-'
The value of integer-1 must be greater than or equal to zero; it must also be less than the value of integer-2.
If integer-1 is omitted, a value of 1 is assumed and the keyword TO must also be omitted.
integer-2 must be greater than integer-1.
The length of the subject item is fixed. Only the number of repetitions of the subject item is variable.