Complex OCCURS DEPENDING ON
Several types of complex OCCURS DEPENDING ON (complex
ODO) are possible. Complex ODO is supported as an extension
to the 85 COBOL Standard.
The basic forms of complex ODO permitted by the compiler are as follows:
- Variably located item or group: A data item described by an
OCCURSclause with theDEPENDING ONphrase is followed by a nonsubordinate elementary or group data item. - Variably located table: A data item described by an
OCCURSclause with theDEPENDING ONphrase is followed by a nonsubordinate data item described by anOCCURSclause. - Table that has variable-length elements: A data item described
by an
OCCURSclause contains a subordinate data item described by anOCCURSclause with theDEPENDING ONphrase. - Index name for a table that has variable-length elements.
- Element of a table that has variable-length elements.
related tasks
Preventing index errors when changing ODO object value
Preventing overlay when adding elements to a variable table
Preventing index errors when changing ODO object value
Preventing overlay when adding elements to a variable table
related references
Effects of change in ODO object value
OCCURS DEPENDING ON clause (COBOL for AIX Language Reference)
Effects of change in ODO object value
OCCURS DEPENDING ON clause (COBOL for AIX Language Reference)