User defined enviroment variables

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
snassimr
Premium Member
Premium Member
Posts: 281
Joined: Tue May 17, 2005 5:27 am

User defined enviroment variables

Post by snassimr »

Hi !

I have one problem.

I build job and define enviroment variable in JOB
I export job to another project via dsx file
In new project I defined te vvariable with the same name,but value

When I run the job the DEFAULT value from former project is appear ?

Why ? How to say DS to get new value of variable .
ysureshv
Participant
Posts: 2
Joined: Fri Jul 15, 2005 12:16 pm

Re: User defined enviroment variables

Post by ysureshv »

Hi snassimr,
You have to specify the value in the new project , and the Default value for the environmental variable will be "PROJDEF" , in this way you donot see the old value in the new project.
Hope I am clear ...

Suresh
snassimr wrote:Hi !

I have one problem.

I build job and define enviroment variable in JOB
I export job to another project via dsx file
In new project I defined te vvariable with the same name,but value

When I run the job the DEFAULT value from former project is appear ?

Why ? How to say DS to get new value of variable .
I_Server_Whale
Premium Member
Premium Member
Posts: 1255
Joined: Wed Feb 02, 2005 11:54 am
Location: United States of America

Post by I_Server_Whale »

Hi,

What is the value of your environment variable in the 'Parameters' (Job Properties)? Is it hard coded to the previous value???

Please check that. Go to "Job Properties" then "Parameters" and see what value you are assigning to the environment variable.

Most probably it should be the previous value that you are getting and NOT the new value.

If you want to use the new default value for the environment variable that you assigned through administrator, then you have substitute "$PROJDEF" in the parameter field of the job properties in Designer.

Let me know,
Naveen.
Post Reply