Example

 OMIT COND=(27,1,CH,EQ,C'D',&,
            (22,2,BI,SOME,X'C008',|,
             28,1,BI,EQ,B'.1....01'))
This statement omits records in which:
  • Byte 27 contains D

    AND

  • Bytes 22 through 23 have some, but not all of bits 0, 1 and 12 on OR byte 28 is equal to the specified pattern of bit 1 on, bit 6 off and bit 7 on.

Note that the AND and OR operators can be written with the AND and OR signs, and that parentheses are used to change the order in which AND and OR are evaluated.

For additional examples of logical expressions, see INCLUDE control statement.