Env Variable

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
subrat
Premium Member
Premium Member
Posts: 77
Joined: Tue Dec 11, 2007 5:54 am
Location: UK

Env Variable

Post by subrat »

Hi,

I am new to DS. Can anyone let me know the utility of $PROJDEF and why we use that? Whats the differnce between User Var and Env variable.
Maveric
Participant
Posts: 388
Joined: Tue Mar 13, 2007 1:28 am

Post by Maveric »

Environmental variables are set at a project level. When you use a environmental variable in the job and set it to $PROJDEF, during run time the value of the variable is set from the project definition. Generally connection, user name, passwords to data bases are set as environmental variables. Now is the value of the variable is changed it will automatically reflect in the job runs. User variables are defined per job and a value will have to be passed to the job during run time.
RavishankarMS
Participant
Posts: 8
Joined: Tue Oct 23, 2007 5:12 am

Post by RavishankarMS »

To add a word..

It has got overridding concept where by specifying $PROJDEF you may specify the value you want to pass at project level to every job. And User Variables are as simple as argument list to a job & bes the job specific.
Regards,
Ravishankar M S
Post Reply