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

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
srinivas.nettalam
Participant
Posts: 134
Joined: Tue Jun 15, 2010 2:10 am
Location: Bangalore

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

Post 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?
N.Srinivas
India.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post 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.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply