Joined: 23 Nov 2006 Posts: 19270 Location: Inside the Matrix
You need to post better examples.
Create a wider variety of input data and more than 8 records. Make sure that the records are not just repeats - the way you have defined the data causes confusion when you look at the output. Also make sure that there are no typo's - i believe your first test record is missing the ending ">".
If you only put 1 record in each output file, what about the records that are "left over"?
I believe the reason you see the output you are seeing is because the splitby you specified puts 1 record in each output file and then starts again at file 1. This continues in rotation until all of the input has been copied into the 6 output files.
Iin case you need any help:
1. then post the sample set of i/ps with the record numbers, and which record should go to which o/p file?
meant to say,do you want to split the i/p based on any rule?
2. You want to split in to how many o/p file's