condition-name
Format 3 - condition-name .-------------------------. V | >>-condition-name-1----+---------------------+-+----------------> '-+-IN-+--data-name-1-' '-OF-' >--+---------------------+--+---------------------+------------>< '-+-IN-+--file-name-1-' | .-----------. | '-OF-' | V | | '-(----subscript-+--)-'
- condition-name-1
- Can be defined in the Data Division or in the SPECIAL-NAMES paragraph within the Configuration Section of the Environment Division. If condition-name is defined in the Configuration Section, it can be referred to in the program containing the Configuration Section or in a nested program. If the condition-name is defined in the Data Division, it can be referenced according to the scoping rules for global and local names (see Global and Local Names).
If explicitly referenced, a condition-name must be unique or be made unique through qualification and/or subscripting except when the scope of names conventions by themselves ensure uniqueness of reference.
If qualification is used to make a condition-name unique, the associated conditional variable may be used as the first qualifier. If qualification is used, the hierarchy of names associated with the conditional variable itself must be used to make the condition-name unique.
If references to a conditional variable require subscripting, reference to any of its condition-names also requires the same combination of subscripting.
The format and restrictions on the combined use of qualification and subscripting of condition-name is exactly that of "identifier" except that data-name-1 is replaced by condition-name-1.
In the general format of the chapters that follow, "condition-name" refers to a condition-name qualified or subscripted, as necessary.
- data-name-1
- Can be a record-name.
- file-name-1
- Must be identified by an FD or SD entry in the Data Division.
File-name-1 must be unique within this program.
