BITCHECK


BITCHECK returns the current value of a specified bit from the local bit table.

 

COMMAND SYNTAX

BITCHECK(table_no)

 

SYNTAX ELEMENTS

table_no specifies the position in the table of the bit to be checked.

 

NOTES

A unique table of 128 bits (numbered 1 to 128) is maintained for each process. Each bit in the table is treated as a two-state flag - the value returned will always be 0 (zero) or 1.

BITCHECK also provides some special functions if you use one of the following table_no values:

-1 returns the setting of the BREAK key Inhibit bit.
-2 returns the setting of the Command Level Restart feature.
-3 returns the setting of the Break/End Restart feature.

 

EXAMPLE

BIT.VAL = BITCHANGE(100)
CRT BIT.VAL

If bit 100 in the table is 0 (zero), 0 will be displayed. If bit 100 is set to 1 (one), 1 will be displayed.


jBC