Posted: Wed Apr 02, 2008 6:08 am Post subject: DFSORT Merging files to one Output File
I have 10 files with huge input data. I need to pick certain rows only from these files based on certain conditions and create one output file. Is it possible to acheive this through DFSORT. If yes, can you please help _________________ tp
Joined: 01 Feb 2007 Posts: 1075 Topics: 7 Location: At Home
Posted: Wed Apr 02, 2008 7:46 am Post subject:
I presume you mean DFSORT - no H. Yes, just concatenate the files to SORTIN. If there are too many records then run each file through sort by itself and then merge the 10 SORTOUT files afterwards either by IEBGENER, if the sequence does not matter, or via sort if the sequence does matter. _________________ Utility and Program control cards are NOT, repeat NOT, JCL.
Joined: 02 Dec 2002 Posts: 1618 Topics: 31 Location: San Jose
Posted: Wed Apr 02, 2008 10:31 am Post subject:
Assuming the input files have RECFM=VB, or RECFM=FB and the same LRECL, and you just want to copy selected records from all of the files to one output data set, you can use a DFSORT job like this:
If that's not what you want to do, then please give more details.
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:
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum