You can use ICETOOL's SUBSET operator to create a subset of the input or output records with or without specific header, trailer or relative records. You use the following operands to tell SUBSET which records you want to keep or remove:
The records that are selected (that is, kept or not removed) are written to the output data set identified by the TO operand. If appropriate, you can use the DISCARD operand to save the records that are not selected to a separate output data set identified by the DISCARD operand. You can create just the TO data set, just the DISCARD data set, or both.
You can use a USING data set to specify various DFSORT statements with SUBSET; see z/OS DFSORT Application Programming Guide for details.
MASTER03.IN
2008/04/23
Vicky
Frank
Regina
Viet
David
Dave
Carrie
Sam
Sri Hari
Martin
UPDATE03.OUT
SUBSET FROM(INPUT) TO(OUTPUT) KEEP INPUT-
FIRST(2) RRN(5,7) RRN(11) LAST
MASTER03.IN
2008/04/23
Regina
Viet
David
Sri Hari
UPDATE03.OUT
For complete details of SUBSET, as well as more examples, see z/OS DFSORT Application Programming Guide.