OMIT control statement

Top  Previous  Next
OMIT    COND=(logical expression) [ FORMAT=f ] |
ALL | (ALL) |
NONE | (NONE)

Use an OMIT statement if you do not want certain records to appear in the output data set. The OMIT statement selects the records you want to exclude.

You can specify either an INCLUDE statement or an OMIT statement in the same DFSORT run, but not both.

COND parameter

The parameter COND may assume 3 values:

Value

Description 

ALL

all the records are omitted

NONE

no record is omitted

logical expression

If the logical expression is true for a given record, the record is omitted from the output data set.

A logical expression consists of one or more relational conditions.

Details

For details about relation conditions, field definition, padding and truncation and supported comparisons, please refer to the INCLUDE control statement .