Thanks for the your suggestions. DFSORT tricks PDF might be useful for me..
Actually the process goes like this.... i will get the customer file individually from the front end in CSV format... Say for e.g. i get 'N' no of customer files (each customer file will have no of records)... those files will be converted and merged into single flat file and it will processed...
After processing i need to separate it and create the same 'N' no of outputs according to the customer no... say one PS file for one customer. These N no of PS files will be converted to their corresponding CSV formats and will be send back to front end.
Are you passing the data through the process first to determine how many DD's and datasets will be required?
Yes. First i need to determine the no of o/p datasets to be created based on the no of input files i get.
How is the output to be used? Will these split files survive beyond their next use?
The output will be converted to CSV formats individually and will be sent to front end server.