Sir,
i have two sequential files having LRECL=80, now i want to merge the two files in to an another file... two files are merged according to the criteria that they have value in the particular fields.. i gave the below statement it is not working... what is the solution
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
If you want to MERGE files, each file to be merged must already be in the order you use for the MERGE statement. For example, if you want to use:
MERGE FIELDS=(1,7,BI,A,33,7,BI,A)
then each input file to be merged must already have been sorted by 1,7,BI,A,33,7,BI,A. If the input files are not already sorted, then you would concatenate and SORT them rather than MERGE them.
If you're not familiar with DFSORT and DFSORT's ICETOOL, I'd suggest reading through "z/OS DFSORT: Getting Started". It's an excellent tutorial, with lots of examples, that will show you how to use DFSORT, DFSORT's ICETOOL and DFSORT Symbols. You can access it online, along with all of the other DFSORT books, from: