Library View Topics Framed Contents Revised Topics Previous Topic Next Topic Search Search ResultsPrevious Topic MatchNext Topic Match Notes List Notes Print Download No PDF Handheld DisconnectedHandheld ConnectedHelp

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:

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:



Previous Topic Next Topic © 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.