Previous Topic: KeywordsNext Topic: Example 2


Example 1

These examples show two implied OR formats, by changing the data parameter. The first example means that only the records where the STATE-CODE either contains the character string CT or MA are printed.

READ,
  LAYOUTFILE(LAYOUT),
  IF(STATE-CODE,EQ,C'CT,MA'),
    PRINTREC

The second example means that only the records where the STATE-CODE either contains the character string "CT", "Ct", "cT", "ct" or "MA" are printed.

READ,
  LAYOUTFILE(LAYOUT),
  IF(STATE-CODE,EQ,T'CT,C'MA'),
    PRINTREC