6.1.6.5.3 Comparing Numeric and Nonnumeric Operands
The nonnumeric comparison rules, discussed above, apply. In addition,
when numeric and nonnumeric operands are being compared, their USAGE must
be the same. In such comparisons:
- The numeric operand must be described as an integer literal or data
item.
- Non-integer literals and data items must not be compared with
nonnumeric operands.
- X External floating-point items can be compared with nonnumeric
X operands.
If either of the operands is a group item, the nonnumeric comparison
rules, discussed above, apply. In addition to those rules:
- If the nonnumeric operand is a literal or an elementary data item, the
numeric operand is treated as though it were moved to an alphanumeric
elementary data item of the same size, and the contents of this
alphanumeric data item were then compared with the nonnumeric operand.
- If the nonnumeric operand is a group item, the numeric operand is
treated as though it were moved to a group item of the same size, and
the contents of this group item were compared then with the nonnumeric
operand.
See "MOVE Statement" in topic 6.2.24.
© Copyright IBM Corp. 1991, 1998
IBM Library Server Copyright 1989, 2005 IBM Corporation. All rights reserved.
Return to library:
z/OS |
z/OS.e |
TPF |
z/VSE |
z/VM |
IBM Hardware |
IBM System z Redbooks
Glossary:
IBM terminology
Publications:
How to order publications
Readers:
Download IBM Library Reader |
Download IBM Softcopy Reader |
Download Adobe® Acrobat® Reader®
Library management:
Download IBM Softcopy Librarian
Contacts:
Contact z/OS
Adobe, the Adobe logo, Acrobat, the Acrobat logo, and Acrobat Reader are registered trademarks
of Adobe Systems incorporated.