COBOL Manual for TNS/E Programs (H06.03+)
Procedure Division
HP COBOL Manual for TNS/E Programs—520347-003
8-57
Simple Conditions
°
An index-name and a numeric data item or numeric literal
The occurrence number that corresponds to the value of the index-name is
compared to the value of the data item or literal.
°
An index data item and an index-name or another index data item
The actual values are compared without conversion.
Neither an index-name nor an index data item can be compared with any operand
other than those mentioned in the preceding rules.
•
National Data Items and National Literals
A national data item or a national literal can be compared only to another national
data item or a national literal.
The first three simple relation conditions in Example 8-11 are equivalent.
Relation Conditions With Nonpointer Operands
subject
object
is an identifier, a literal, an arithmetic expression, an index-name.
Example 8-11. Simple Relation Conditions
I + 1 > HIGH-I
(I + 1) > HIGH-I
HIGH-I < (I + 1)
TAXABLE-INCOME GREATER THAN ZERO
LAW-NAME = "MURPHY"
"POOL" NOT EQUAL TROUBLE-SOURCE
A-INDEX NOT > 23
subject
IS
objectrelationship
VST118.vsd










