COBOL Manual for TNS and TNS/R Programs

Procedure Division
HP COBOL Manual for TNS and TNS/R Programs522555-006
8-66
Abbreviated Combined Relation Conditions
Abbreviated Combined Relation Conditions
COBOL enables you to abbreviate a sequence of complex relation conditions. For
example, you can use
A NOT EQUAL B OR C
instead of having to use
(A NOT EQUAL B) OR (A NOT EQUAL C)
You can abbreviate any condition in a sequence except the first one by omitting either
of these:
The subject, for example:
A NOT EQUAL B OR NOT EQUAL C
The relational operator and the subject, for example:
A NOT EQUAL B OR C
The subject is the term to the left of the operator. For more information, see Usage
Considerations:.
rel-condition
is a relational condition.
combined-part
rel-operator
is a relational operator.
object
is an identifier, a literal, an arithmetic expression, or an index-name.
This abbreviation technique is available when a group of the characteristics shown in
Table 8-19 is present.
rel-condition combined-part
VST124.vsd
NOT
AND
OR
object
rel-operator
VST125.vsd