Distributed Systems Network Management (DSNM) Subsystem Interface Development Guide
_ON
A-80
109759—Distributed Systems Network Management (DSNM) Subsystem Interface
Development Guide
DSNM Library Services
_ON
_ON is a Boolean define statement that is TRUE if any one-bit of bit-mask is on in
int-exp. TRUE is nonzero, not necessarily -1.
The _ON function is the same as the _ANYON function. It is more descriptive to use
_ANYON when testing more than one bit.
int-exp input
INT:value
is the variable compared with bit-mask.
bit-mask input
INT:value
is an INT expression, the one-bits of which identify the bits in int-exp to test.
Example
The following example tests if the _EV^CANCEL bit is on in _LAST^EVENTS:
IF _ON (_LAST^EVENTS, _EV^CANCEL)
THEN ...;
_ON ( int-exp , bit-mask )