split records to multiple output files
Posted: Tue Jan 16, 2007 5:21 am
hi all,
I have a requirement to split a DBF file based on the values in one column, into a number of output files.
One output file for each split value.
So, if the input column has the following values: A, B, C, D the job should create 4 files named A.DBF, B.DBF, C.DBF, D.DBF each filled with the correctly splitted records.
Can I use the switch stage for this?
How to handle the fact that I don't know the number of output files in advance.
Peter
I have a requirement to split a DBF file based on the values in one column, into a number of output files.
One output file for each split value.
So, if the input column has the following values: A, B, C, D the job should create 4 files named A.DBF, B.DBF, C.DBF, D.DBF each filled with the correctly splitted records.
Can I use the switch stage for this?
How to handle the fact that I don't know the number of output files in advance.
Peter