Page 1 of 1

refersh user defined environment variables

Posted: Mon Mar 26, 2007 12:06 am
by madhukar
Hi All,

i have a user defined environment variable in a Job.
it is working fine with the value defined at the time of creation.

if i change the value and run the job again its taking the old value which is present as default value in the job

if i remove the environment variable and add it again then it is reflecting the new value.

but i need the job to take the changed value.
Anyone has any ideas on this?

Posted: Mon Mar 26, 2007 12:23 am
by Sreedhar
How are you passing the values to the job?

Posted: Mon Mar 26, 2007 12:35 am
by madhukar
i have added the user defined environment variable in the job which fetches values defined (default value) in the variable.

What exactly i need to do is, if i change the value of environment variable, then that value has to refreshed in the job parameter.

Posted: Mon Mar 26, 2007 12:59 am
by oacvb
When you are adding environmental variable in job, directly it will apply the value set from environmental variable. To reflect the change, instead of having value of environmental variable, mention this $PROJDEF. it will take directly the value from environmental variable.

Please see the below definition.

$PROJDEF. The current setting for the environment variable is retrieved and set in the jobs environment (so that value is used wherever in the job the environment variable is used). If the value of that environment variable is subsequently changed in the Administrator client, the job will pick up the new value without the need for recompiling

Posted: Mon Mar 26, 2007 3:01 am
by madhukar
Thanks :D