Environment 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
Manfred Hagedorn
Participant
Posts: 58
Joined: Wed Apr 04, 2007 10:02 am

Environment variables

Post by Manfred Hagedorn »

Hello,
i want to use an environment variable in a parallel job.
I have defined a user-defined variable in the Administrator.
When i use this variable in a parallel job as a Parameter and set default to "$PROJDEF" it works!
But when calling this job by a sequence i don't know whether:
- the sequence should hand over an empty field to the job for this field
- or should i define the same variable on sequence level as well and then hand over it to the job
- if yes, should i set the default value on sequence level as well to "$PROJDEF" ?

I think, i have tried all cases ... didn't find the right way.
Hope anybody can help me.
Thanks a lot in advance.
Manfred
sachin1
Participant
Posts: 325
Joined: Wed May 30, 2007 7:42 am
Location: india

Re: Environment variables

Post by sachin1 »

sorry dear but please post the message in parallel section.
nagarjuna
Premium Member
Premium Member
Posts: 533
Joined: Fri Jun 27, 2008 9:11 pm
Location: Chicago

Re: Environment variables

Post by nagarjuna »

When your are using some parameters in the job those parameters need to be passed from sequence which is using that job .Otherwise default values specified in the job will be considered .


In sequence give whatever parameters that is being used in job and map in the activity stage .If you want to take value from administrator then define $PROJDEF and map into the job .


Manfred Hagedorn wrote:Hello,
i want to use an environment variable in a parallel job.
I have defined a user-defined variable in the Administrator.
When i use this variable in a parallel job as a Parameter and set default to "$PROJDEF" it works!
But when calling this job by a sequence i don't know whether:
- the sequence should hand over an empty field to the job for this field
- or should i define the same variable on sequence level as well and then hand over it to the job
- if yes, should i set the default value on sequence level as well to "$PROJDEF" ?

I think, i have tried all cases ... didn't find the right way.
Hope anybody can help me.
Thanks a lot in advance.
Manfred
Nag
Post Reply