I have input data in sorted order which looks like
Key Code
100 cd1
200 cd2
200 cd3
300 cd4
400 cd5
400 cd6
400 cd7....
My output should be
Key Code
100 cd1
200 cd2,cd3
300 cd4
400 cd5,cd6,cd7....
In order to accomplish this logic I am using the stage variables. It is working fine but the last Key is missing in the output data. I know this is because I am comparing the previous record after reading the next record(that is the basic meaning of compare
![Smile :)](./images/smilies/icon_smile.gif)
Is there a function or a way to capture the last key in the DataStage Transformer?
Thanks
Kusuma