Previous topic |
Next topic |
Contents |
Contact z/OS |
Library |
PDF
Keeping or removing headers, trailers and relative records z/OS DFSORT: Getting Started SC23-6880-00 |
|
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. Suppose you have input records that look like this:
You want to create an output data set with the the first two input
records, the fifth through seventh input records, the eleventh input
record, and the last input record. Write the following ICETOOL statement:
The output records would look like this:
For complete details of SUBSET, as well as more examples, see z/OS DFSORT Application Programming Guide. |
Copyright IBM Corporation 1990, 2014
|