skip to main content

Data Division : Data Names : Qualification

Qualification
Every user-defined name explicitly referenced in a COBOL source program must be uniquely referenced because either:
1.
2.
3.
These higher level names are called qualifiers and this process that specifies uniqueness is called qualification. Identical user-defined names may appear in a source program; however, uniqueness must then be established through qualification for each user-defined name explicitly referenced, except in the case of redefinition. All available qualifiers need not be specified so-long as uniqueness is established. Reserved words naming the special registers require qualification to provide uniqueness of reference whenever a source program would result in more than one occurrence of any of these special registers.
Regardless of the above, the same data-name must not be used as the name of an external record and as the name of any other external data item described in any program contained within or containing the program which describes that external data record.
General formats
Format 1:
{Data-Name-1   } { {OF} Data-Name-2 } ... [ {OF} File-Name-1 ]
{Condition-Name}   {IN}                     {IN}
Format 2:
Paragraph-Name {OF} Section-Name
Format 3:
Text-Name {OF} Library-Name
Format 4:
LINAGE-COUNTER {OF} File-Name-2
Format 5:
PAGE-COUNTER {OF} Report-Name-2
LINE-COUNTER {OF} Report-Name-2
General rules
1.
2.
3.
IN and OF are synonymous.
4.
In Format 1, each qualifier must be the name associated with a level indicator, the name of a group item to which the item being qualified is subordinate, or the name of the conditional variable with which the condition-name being qualified is associated. Qualifiers are specified in the order of successively more inclusive levels in the hierarchy.
5.
In Format 1, Data-Name-1 or Data-Name-2 may be a record-name.
6.
If explicitly referenced, a paragraph name must not be duplicated within a section. When a paragraph name is qualified by a section name, the word SECTION must not appear. A paragraph name need not be qualified when referred to from within the same section.
7.
Text-Name is the name of a copybook.
8.
Library-Name is the name of a directory that contains Text-Name.
9.
LINAGE-COUNTER must be qualified each time it is referenced if more than one file description entry containing a LINAGE clause has been specified in the source program.
10.
11.

Copyright (c) 2017 Veryant
Contact us
Please share your comments on this manual or on any
Veryant product documentation with the email button at the top left