Specifying COMP at the Select/Omit-Field Level for Physical and Logical Files

At the select/omit-field level, you can specify a field name, a value, or *NULL for the parameter.

If you specify a value, the following rules apply:

If you specify *NULL, the relational operator must be EQ or NE.

COMP selects or omits records retrieved from the physical file on which this logical file is based when your program sends an input operation to the record format you are defining. The OS/400 program selects or omits records as a result of testing the value of the select/omit fields against the value you specify, the value of the field whose name you specify, or the null value (if *NULL was specified).