COBOL Manual for TNS/E Programs (H06.03+)

Procedure Division
HP COBOL Manual for TNS/E Programs520347-003
8-66
Abbreviated Combined Relation Conditions
These combined conditions are valid:
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
LARRY AND MOE AND (CURLY OR SHEMP)
All four are condition-names—
level-number 88.
I < E AND (E NOT > C)
All three symbols are alphanumeric
data items.
NOT ((A IS POSITIVE) OR (B IS POSITIVE))
Both A and B are numeric data
items.
rel-condition combined-part
VST124.vsd
NOT
AND
OR
object
rel-operator
VST125.vsd