COBOL Manual for TNS and TNS/R Programs
Data Division
HP COBOL Manual for TNS and TNS/R Programs—522555-006
7-95
Descriptions of Condition-Names for Values
(Level 88)
Descriptions of Condition-Names for Values
(Level 88)
You can assign a name to a specific value, set of values, or range of values that a data
item can have and use that name as a condition in a conditional statement. The name
is called a condition-name, and the data item associated with it is called a
conditional variable.
To do this, you must put one or more level-88 items (each including a condition-name
and a VALUE clause specifying a value or a range of values for that condition-name)
immediately after the data description of the conditional variable. You can put level-88
items in any section of the Data Division.
condition-name
is the name of the condition value.
value-1
is a literal. It is either a single value or the first in a range of values tested by the
condition.
value-2
is a literal and is the final value in a range of values tested by the condition.
88
condition-name
VALUE
IS
VALUES
ARE
value-1
THRU
value-2
THROUGH
VST112.vsd