Page 1 of 1

same stage variable names in one or more transformers???

Posted: Tue Apr 12, 2011 1:18 am
by srinivas.nettalam
can we use same stagevariable names in one or more transformers in a single job?? FYI it is not an interview question..just flashed in my mind while working on stage variables.If yes ,then each stage variable pertains to that particular transformer similar to a variable used in object oriented programming language.is this right?

Posted: Tue Apr 12, 2011 4:57 am
by ray.wurlod
The scope of a stage variable is the stage in which it is declared.

Therefore the same stage variable name may be used in more than one Transformer stage in the same job.