Previous Topic: ParametersNext Topic: SETRC


Keywords

The following is a complete list of the valid keywords that are subordinate to the SELRECIF, AND, OR keywords.

ACCUM
CHANGE
EDIT
IF, AND, OR
MOVE
OUTLIM
PADCHAR
POSITION

PRINTLIM
REPLACE
SELECT
SELLIM
SELRECIF, AND, OR
SKIP
STOP
WRITE

For detailed information about these keywords, see the appropriate section in this chapter.

Example 1

This example syntax overwrites record positions 8 and 9 with 03 if record field DOB-MONTH equals one of the character strings 'JAN', 'FEB', 'MAR', 'APR', 'MAY', 'JUN', 'JUL', 'AUG', 'SEP', 'OCT', 'NOV' or 'DEC'. No other records are updated.

UPDATE,
  LAYOUTFILE(LAYOUT),
  SELRECIF(DOB-MONTH,EQ,C'JAN,FEB,MAR,APR,MAY,JUN,JUL,AUG,SEP,OCT,NOV,DEC'),
	REPLACE(8,C'03')

Example 2

This example syntax examines the packed-field for non-packed data, and copies those records to the outfile.

COPY,
  LAYOUTFILE(LAYOUT),
  SELRECIF(PACKED-FIELD,NEP)