Page 1 of 1

Modifying Stage Variables

Posted: Tue Feb 20, 2007 8:16 am
by kevman
Not sure if this is the correct forum, but here it goes ...
I have a Transformer set up with a stage variable. I am giving the variable an initial value, then I want to update it after every row is read. Is this possible? If not, any ideas on how to set up this scenario? Basically I am trying to keep track of a "control number" and reference/update it.

Thanks,

Kevin

Posted: Tue Feb 20, 2007 8:19 am
by DSguru2B
Sure, just pass the new value to the stage variable and it will be updated with the new value coming in with every row.

Posted: Tue Feb 20, 2007 8:19 am
by ArndW
Kevin - welcome to DSXchange!

The server forum is more applicable to this question, but it isn't completely out of place in the General one.

If you specify "initial value" for a stage variable, that will only get executed one time. If you specify a derivation for a stage variable, it will be re-computed each row.

Posted: Tue Feb 20, 2007 8:58 am
by kevman
Thank you for your quick responses. It definately helped.

Kevin