Joined: 26 Nov 2002 Posts: 12358 Topics: 75 Location: San Jose
Posted: Thu Sep 24, 2015 10:06 am Post subject:
viswanathan,
It is quite simple with WHEN=GROUP. You just add a file ID number at the end of the record and validate that field to split into multiple files.
I assumed that your input is unsorted and you need to sort the file and then perform the split. If your input file is already sorted then simply replace the sort fields= statement with OPTION COPY.
Here is a DFSORT JCL which will give you the desired results.
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