Page 1 of 1

Environment

Posted: Wed May 26, 2004 11:06 pm
by mandyli
Hi

How to set Environment variable in Data stage means through Datastage server or Datastage administrator.
Please clarify

Posted: Wed May 26, 2004 11:14 pm
by richdhan
Hi,

Your question is not clear. I believe that you want to add environment variables to your job in which case there is an option to Add Environment variables as job parameters in Job Properties.

You can also create user defined environment variables using Administrator.

--Rich


A little bit of ink is powerful than the strongest memory
--Confucius

Posted: Wed Jul 06, 2005 9:11 pm
by Christina Lim
Hallo all,

I've created a few user defined environment variables using administrator. I tried to find from $DSHOME path in dsenv file, but i couldn't see these values stored in that file.

Can anyone tell me why is that so? i tried run a command at unix level
echo $ENVSTR
and this is value is not set too.

So i assume we can only see/change environment values from the administrator?

Posted: Wed Jul 06, 2005 9:26 pm
by vmcburney
Any environment variables you set in Administrator can only be seen in the Administrator or by looking in the DSParams file in the project directory or by looking at the second Director log message for any job that shows all environment variables for that job.

There is a FAQ on job specific environment variables that may help.
viewtopic.php?t=92038

Posted: Wed Jul 06, 2005 9:37 pm
by ashwin2912
Christina Lim,

You seem to confusing parameters set in Administrator and dsenv

dsenv is for
This script is sourced by the DataStage dsrpcd daemon to establish proper environment settings for DataStage client connections.
This script may also be sourced by bourne shells to establish
proper environment settings for local DataStage use.
wheras Administrator env variables can be accessed from the DataStage jobs.

Regards,
Ashwin

Posted: Wed Jul 06, 2005 11:35 pm
by ray.wurlod
User-defined Environment variables set in Administator are stored in a file called DSParams in the project directory on the server.