How to call a environment variable in a job level

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
balu124
Participant
Posts: 49
Joined: Wed Jul 25, 2007 9:53 pm

How to call a environment variable in a job level

Post by balu124 »

Hi ,
can any one suggests how to call a environment variable in the job level that is already defined at the project level
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Create a job parameter using the Add Environment Variable... command button.

Set the default value of the job parameter to the special token $PROJDEF to have it pick up the value from the project's default if no replacement value is given.

Use a reference to the job parameter anywhere you need it in the job design.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
vijayrc
Participant
Posts: 197
Joined: Sun Apr 02, 2006 10:31 am
Location: NJ

Re: How to call a environment variable in a job level

Post by vijayrc »

balu124 wrote:Hi ,
can any one suggests how to call a environment variable in the job level that is already defined at the project level
In transformer you can define a stage varibale and use GETENVIRONMENT["VariableName"] and the stage variable, this way carries the value for the job.
Post Reply