STARTTIME(target)----->STARTTIME of the 7th record in the source.
RC1---->RC of the 1st record in the source.
RC2---->RC of the 2nd record in the source.
RC3---->RC of the 3rd record in the source.
RC4---->RC of the 4th record in the source.
RC5---->RC of the 5th record in the source.
RC6---->RC of the 6th record in the source.
RC7---->RC of the 7th record in the source.
ENDTIME------>ENDTIME of the 7th record in the source.
How do I do the mapping in the transformer? Any ideas please!
Thanks much,
Whale
Last edited by I_Server_Whale on Fri Dec 15, 2006 6:12 pm, edited 1 time in total.
1) You can use stage variables in the transformer and keep concatenating the RC column into another dummy column.
2) In the next transformer you can take the value in the last row of the dummy column which will contain the concatenated RC value of all the 7 rows and the other columns you need and write them to the target.
To implement the logic, that I suggested, you would require 2 transformers. If you want to implement the first part of the logic in the transformer that you already have in your job, then you would require only 2 transformers total, if not 3.
I would do it in two steps
1) You can use stage variables in the transformer and keep concatenating the RC column into another dummy column.
2) In the next transformer you can take the value in the last row of the dummy column which will contain the concatenated RC value of all the 7 rows and the other columns you need and write them to the target.
What do I assign to the Stage Variable? RC from source?
And then where do I concatenate? How to concat in the derivation?
Thanks a zillion
Whale
Last edited by I_Server_Whale on Fri Dec 15, 2006 6:13 pm, edited 1 time in total.