COMP (Comparison) Keyword for Physical and Logical Files

Use this field-level keyword to specify validity checking for the field you are defining when it is referred to later during display file creation. For logical files, you can also specify this keyword at the select/omit-field level. COMP is equivalent to CMP.

The format of the keyword is:

COMP(relational-operator value)

At the select/omit-field level, the format of the keyword is:

COMP(relational-operator field-name)

Valid relational operators are:

Relational Operator
Meaning

EQ
Equal to

NE
Not equal to

LT
Less than

NL
Not less than

GT
Greater than

NG
Not greater than

LE
Less than or equal to

GE
Greater than or equal to

Specify the value parameter at either the field level or the select/omit field level. Specify the field name parameter only at the select/omit field level.