Can any explain me the difference between the MERGE and SORT utility?
MERGE and SORT are functions of a sort utility (e.g. DFSORT). For a MERGE, each of the data sets to be merged must already be in sorted order by a particular key (or keys) and that key must be used as the MERGE key (or keys). For a SORT, the data sets can be unsorted and can be sorted by any key (or keys) specified as the SORT key (or keys).
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. It also explains the concepts of sorting, merging and copying. You can access it online, along with all of the other DFSORT books, from:
Joined: 30 Dec 2006 Posts: 11 Location: Chennai-India
Thanks Frank. The explanation gives me more clarity about the both the functions. I will putforth what i got. Using both the functionalityof DFSORT we can concatenate 2 files. In MERGE the files should be sorted under a key where as it is not required in SORT. Am i right?