Job Parameter value
Posted: Tue Feb 08, 2005 8:00 pm
Hi All,
I have a job that reads a sequential file. The sequential file has a column called TRANSACTION_ID and the input file is sorted by TRANSACTION_ID. I need to split the input file into as many files as the number of distinct TRANSACTION_ID in the source file. What I am doing right now is the I have 10 output links from the transformer. In the transformer I compare the TRANSACTION_ID of the input row with TRANSACTION_ID of the previous row. Every time we encounter a change I start sending the records to the next link. This works perfectly fine because the file is sorted by TRANSACTION_ID but it puts a limit on maximum number of splits I can have because I have 10 output links.
What is the best way to do it?
Is there any way to change a job parameter value with in the same job while the job is running. If yes then I can use just one output link to a sequential file stage. Use the job parameter in the sequential file name and change its value every time the transaction id changes.
Thanks and Regards,
-Sumit
I have a job that reads a sequential file. The sequential file has a column called TRANSACTION_ID and the input file is sorted by TRANSACTION_ID. I need to split the input file into as many files as the number of distinct TRANSACTION_ID in the source file. What I am doing right now is the I have 10 output links from the transformer. In the transformer I compare the TRANSACTION_ID of the input row with TRANSACTION_ID of the previous row. Every time we encounter a change I start sending the records to the next link. This works perfectly fine because the file is sorted by TRANSACTION_ID but it puts a limit on maximum number of splits I can have because I have 10 output links.
What is the best way to do it?
Is there any way to change a job parameter value with in the same job while the job is running. If yes then I can use just one output link to a sequential file stage. Use the job parameter in the sequential file name and change its value every time the transaction id changes.
Thanks and Regards,
-Sumit