Global variable with in a job

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
rkdatastage
Participant
Posts: 107
Joined: Wed Sep 29, 2004 10:15 am

Global variable with in a job

Post by rkdatastage »

Hi All
Can anyone share you idea that is there any chance to declare a global variable within a Parallel job , here i am not intersted to use environmental variable and parameter.

Thanks in advance
Regards
RK
nagarjuna
Premium Member
Premium Member
Posts: 533
Joined: Fri Jun 27, 2008 9:11 pm
Location: Chicago

Post by nagarjuna »

There are only three levels where you can declare a variable .

1) Job level

2) Project level

3) Env level

within a sequence you can try with uservariable activity .Is there any special reason for not using env variables ?
Nag
rkdatastage
Participant
Posts: 107
Joined: Wed Sep 29, 2004 10:15 am

Post by rkdatastage »

Hi
Thanks for your response
there is a req for me like i need a value in some of the stages and that value i am getting it from a table. what is the best way to use that value which is coming from a table. I want to read it one time and want to use it in req stages and that is specific to a job level.
how can i define such a variable that can be used with in job level.

Regards
RK
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

That would be a job parameter. That means you need a 'pre-job' to do the selection and pass it to the job that needs to use it.
-craig

"You can never have too many knives" -- Logan Nine Fingers
rkdatastage
Participant
Posts: 107
Joined: Wed Sep 29, 2004 10:15 am

Post by rkdatastage »

Hi
Thanks for your response

Regards
RK
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

For the record, there is such a thing in a Server job: COMMON storage in a routine. As long as the stages you need to use it in are Transformer stages, it will support holding a value across multiple ones. With some caveats, of course.
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply