6.1.6.6 Sign Condition
The sign condition determines whether or not the algebraic value of a
numeric operand is greater than, less than, or equal to zero.
___ Format _____________________________________________________________
| |
| >>__operand-1__ ____ __ _____ __ _POSITIVE_ ________________________>< |
| |_IS_| |_NOT_| |_NEGATIVE_| |
| |_ZERO_____| |
| |
|________________________________________________________________________|
operand-1
Must be defined as a numeric identifier, or it must be defined as an
arithmetic expression that contains at least one reference to a
X variable. Operand-1 can be defined as a floating-point identifier.
The operand is:
- POSITIVE if its value is greater than zero
- NEGATIVE if its value is less than zero
- ZERO if its value is equal to zero
An unsigned operand is either POSITIVE or ZERO.
NOT
One algebraic test is executed for the truth value of the sign
condition. For example, NOT ZERO is regarded as true when the operand
tested is positive or negative in value.
X >_Host_> Under OS/390 and VM, if you are using the NUMPROC compiler
X option, the results of the sign condition test can be affected. For
X details, see the IBM COBOL for OS/390 & VM Programming Guide.
X <_Host_<
Subtopics:
© 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.