I have one file having 100 records in it. I want to create two files from this file.
1. Which will contain first 50 records
2. It will contain remaining 50 records.
Is there is any way to do it by using SORT?
Thanks Ekta, Thanks Frank Above JCL's are working. I apologize the way in which I written the question.
The question is The input file may have 100 or 200 or any no. of records, I want to split input file into two files, half records in one file & remaining into another half. If Input file contains odd number of records the Int(n/2+1) into first file & remaining into second file.
This is the DFSORT Forum. People come here looking for a DFSORT solution. If you can't test with DFSORT, then I'd respectively suggest you not post in this Forum.
Note that while full documentation is available for DFSORT's ICETOOL, there's no documentation for Syncsort's SYNCTOOL. So you can't really look up what syntax is valid for SYNCTOOL or what the use of particular syntax will accomplish with SYNCTOOL. You can only experiment. And the DFSORT Forum is not the appropriate place for SYNCTOOL experiments.