Pathway/iTS SCREEN COBOL Reference Manual (H06.10+, J06.03+)
SCREEN COBOL Source Program
HP NonStop Pathway/iTS SCREEN COBOL Reference Manual—426750-003
2-29
Using Identifiers
Using Identifiers
An identifier is a data name made unique by qualifiers, subscripts, or qualifiers and
subscripts. A data name being used as a subscript or qualifier cannot itself be
subscripted.
Identifier syntax is:
The following examples illustrate specification of identifiers:
unique-identifier
item-1 OF group-a
element OF name-table OF master-data (master-num)
Using Condition-Names
Items are tested frequently by a program. Assigning a condition-name to an item is a
convenient way to refer to the item and determine its value.
Every condition-name must be unique or capable of being made unique through
qualification and/or subscripting. If qualification is used to make a condition-name
unique, the conditional variable can be used as the first qualifier. The containing data
names of the conditional variable can also be used as qualifiers. If references to a
conditional variable require subscripting, then any of its condition-names must have the
same subscripting.
The following example illustrates a condition-name called restricted-use:
01 inventory.
02 part-number OCCURS 100 TIMES ...
03 prefix PIC 99.
03 use-code PIC 9.
88 restricted-use VALUE 1.
03 supplier-suffix PIC 99.
The condition-name, restricted-use, might be referenced as:
IF restricted-use OF use-code IN part-number (30)
NEXT SENTENCE,
ELSE...
data-name-1
[ { OF }
data-name-2
] ...
[ { IN } ]
[ (
sub-1
[ ,
sub-2
[ ,
sub-3
] ] ) ]










