Contains job status information.
$ZJOB contains a number in which each bit represents one particular aspect of the job’s status.
$ZJOB returns an integer that consists of the total of the set status bits. For example, if
$ZJOB = 5, this means that the 1 bit and the 4 bit are set.
To test individual
$ZJOB bit settings, you can use the
integer divide (\) and
modulo (#) operators. For example,
$ZJOB\x#2, where
x is the bit number. The following table shows the layout of the bits (by bit positional value), their settings and meanings:
WRITE " bit 1=",$ZJOB\1#2,!
WRITE " bit 2=",$ZJOB\2#2,!
WRITE " bit 4=",$ZJOB\4#2,!
WRITE " bit 8=",$ZJOB\8#2,!
WRITE "bit 1024=",$ZJOB\1024#2