The following is a complete list of the valid keywords that are subordinate to the SELRECIF, AND, OR keywords.
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')
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)
|
Copyright © 2015 CA Technologies.
All rights reserved.
|
|