Comparisons With Index Names/Index Data Items; Sign Condition - Control Data Corporation 3300 Reference Manual

Computer systems usasi cobol/ master
Table of Contents

Advertisement

4.3.4
COMPARISONS
INVOLVING
INDEX NAMES AND/OR
INDEX DATA ITEMS
4.3.5
SIGN CONDITION
4-10
Operands of U negual Size
The comparison of characters proceeds from high-order characters to
low-order characters until a pair of unequal characters is encountered or
until the characters in one of the operands are exhausted.
If
remaining
characters in the longer operand consist entirely of spaces, the two
operands are considered equal, otherwise the longer operand is con-
s ide red greater.
Comparison of two index names is the same as if the corresponding occurrence
numbers are compared. Conversion from character address bias is performed
automatically.
In
the comparison of an index name with a literal or data item (other than an
index data item), the occurrence number is compared to the actual value of
the data item or literal. Conversion of the character address bias in the
index name occurs prior
to
the comparison.
In
the comparison of an index data item with an index name or another index
data item, the actual values are compared without conversion.
The result of any other comparison involving an index data item is unpredictable.
This condition determines whether or not the algebraic value of a numeric
operand is less than, greater than, or equal to zero.
1
identifier
i
IS {NOT]
1
::~:;E
i
arithmetic -expression
ZERO
An operand is positive if its value is greater than zero, negative if its value
is less than zero, and zero
if
its value is equal to zero.
60229400

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the 3300 and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

3500

Table of Contents