Do you have version 8.5, which has looping in the Transformer stage?
Even so, you don't really need it. Use stage variables to compare the current row with the previous row and, where the key value is the same and the other value is missing, use the other value from the previous row.
Make sure that your data are properly partitioned and sorted (on the key value).
Row Values Repetition
Moderators: chulett, rschirm, roy
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
You need to change your logic slightly.
Use the below one.
sCurrentValue : If NullToValue(Input column,"")<> "" Then InputColumn Else sPreviousValue
sPreviousValue: InputColumn
Use the below one.
sCurrentValue : If NullToValue(Input column,"")<> "" Then InputColumn Else sPreviousValue
sPreviousValue: InputColumn
Last edited by kondeti on Mon Feb 27, 2012 7:41 pm, edited 1 time in total.
Thanks
Kondeti
Kondeti