IBM Tivoli NetView for z/OS, Version 6.2

Using Bit Notation

Another option is to specify a bit position. With a bit position, the rules of the comparison change, and the item you specify on the right side of the expression must be a bit string. Like byte positions, bit positions begin at one (1) rather than zero (0). Figure 1 uses a bit position and a bit string to test for the hierarchy name list (subfield X'10').

Figure 1. Example of Using Bit Notation
IF MSUSEG (0000.05.10 5 1) = '1000001110010101100101001111000011110001' THEN
      SRF(ESREC PASS)
      SRF(AREC BLOCK);

A placeholder is not used in Figure 1, because bit-string comparisons test only as many bits as you provide. You can also use Xs in the bit string if you want the comparison to skip specified bits.

The location specification is in hexadecimal, while the byte and bit positions are in decimal numbers. In Figure 1, for example, the X'0000', X'05', and X'10' are in hexadecimal, while the 5 and the 1 are decimal numbers.



Feedback