Job Parameters override

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
Rea_Antony
Participant
Posts: 73
Joined: Thu Mar 08, 2007 9:50 pm
Location: Bangalore

Job Parameters override

Post by Rea_Antony »

Hi,
I have a query.
The server jobs have job properties.
Also, sequences (schedulers) have job properties.

Can you tell me who has greater prominence? As in, can server job parameters override scheduler job properties? or is it the other way around?

Thanks!
tkbharani
Premium Member
Premium Member
Posts: 71
Joined: Wed Dec 27, 2006 8:12 am
Location: Sydney

Re: Job Parameters override

Post by tkbharani »

Rea_Antony wrote:Hi,
I have a query.
The server jobs have job properties.
Also, sequences (schedulers) have job properties.

Can you tell me who has greater prominence? As in, can server job parameters override scheduler job properties? or is it the other way around?

Thanks!
What ever parameters given through Sequencer or scheduler is taken finally. As we call sequencer first and then sequencer in turn calls jobs,we pass sequencer parameters to jobs.so sequencer have greater prominence I think.
Thanks, BK
Rea_Antony
Participant
Posts: 73
Joined: Thu Mar 08, 2007 9:50 pm
Location: Bangalore

Post by Rea_Antony »

yes, that is what I thought too.. but that isn't what happened when I tried to test it :(

see, i have a sequence. I have given $PROJDEF values
I have one job as part of this sequence. In the job parameters, i have hard coded the source,target etc..
As per my understanding, the sequence level parameters should ALWAYS override the job level. But when i run teh sequence, the job parameters only work and teh sequence parameters are ignored.... :?
Rea_Antony
Participant
Posts: 73
Joined: Thu Mar 08, 2007 9:50 pm
Location: Bangalore

Post by Rea_Antony »

just to be on the safe side, i changed the sequencer parameters (hard coded) and put $PROJDEF at job level...
it still picks up the job level parameters :(
can anyone plz tell me where I'm going wrong here?
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

There's no 'automatic' override at work here, which it sounds to me like you are expecting - you either pass the Sequence parameters to any called job via the Job Activity stage or... you don't. How are you handling things in your Sequence job?
-craig

"You can never have too many knives" -- Logan Nine Fingers
Rea_Antony
Participant
Posts: 73
Joined: Thu Mar 08, 2007 9:50 pm
Location: Bangalore

Post by Rea_Antony »

yes, i do expect an automatic override...

my understanding is this: if the job sequence has parameters defined, and so does the jobs run by the sequence, then the sequence parameters should override the job level parameters.

isn't that how it should work? :?
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

No, not automagically. Simply having 'the same parameters' defined in both doesn't mean squat - they must be passed from parent to child to 'override' the default values in the child.
-craig

"You can never have too many knives" -- Logan Nine Fingers
Rea_Antony
Participant
Posts: 73
Joined: Thu Mar 08, 2007 9:50 pm
Location: Bangalore

Post by Rea_Antony »

not same...i have different values in both..
i need to know whose parameters will work
Rea_Antony
Participant
Posts: 73
Joined: Thu Mar 08, 2007 9:50 pm
Location: Bangalore

Post by Rea_Antony »

not same...i have different values in both..
i need to know whose parameters will work
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Not sure how many times or different ways you want me to say it. :?

The child's job parameters will always be in effect unless you specifically pass (or 'override' if you prefer) them in the Sequence job. To be pedantic, that means on the Job tab of Job Activity stage, putting the Sequence job's parameter name(s) in the Value Expression of the corresponding child job's parameter name(s).
-craig

"You can never have too many knives" -- Logan Nine Fingers
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Turning the logic around, if the Job activity sets the job parameter value using the value of the sequence's parameter, then it is the sequence's parameter value that ends up being used. If the Job activity sets the job parameter value using some other expression then the sequence parameter value is ignored.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Rea_Antony
Participant
Posts: 73
Joined: Thu Mar 08, 2007 9:50 pm
Location: Bangalore

Post by Rea_Antony »

Thanks! was pretty confused earlier.
Post Reply