Previous topic |
Next topic |
Contents |
Contact z/OS |
Library |
PDF
Merging previously sorted data sets z/OS DFSORT: Getting Started SC23-6880-00 |
|||
You can use DFSORT's MERGE operator to create merged output data sets. A single MERGE operator can be used to merge up to 50 input data sets which were previously sorted by the same fields in the same locations. MERGE can create one output data set or up to 10 identical output data sets. Using INCLUDE or OMIT statements, you can select a subset of the input records. Using INREC or OUTREC statements, you can rearrange the fields of the input records. Using OUTFIL statements, you can create any number of output data sets with different subsets of records or arrangements of fields. You can use up to 10 FROM operands to specify up to 50 input data sets. You must specify a USING data set to specify a DFSORT MERGE statement that tells MERGE the fields your input data sets are already sorted on. You can use various other DFSORT statements as well; see z/OS DFSORT Application Programming Guide for details. Suppose you have two input data sets previously sorted by Branch Number as follows: Input file1
Input file2
The following JCL and ICETOOL statements would merge the two input
data sets on the Branch Number:
The output data set would have these merged records:
|
Copyright IBM Corporation 1990, 2014
|