Page 1 of 1

Run job based on Param value

Posted: Fri Aug 13, 2010 9:26 am
by kpsita
Hi,

I have two datastage jobs and have to trigger either one of the job based on one of my input paramater. How can I handle this in datastage. i am not using Sequencer job.

Thanks,

Posted: Fri Aug 13, 2010 9:32 am
by chulett
Use Sequencer job... or is that the part you need help with?

Posted: Fri Aug 13, 2010 9:49 am
by kpsita
No, they don't want to use sequencer. Is there a way to control this within datastage job.

Thanks

Posted: Fri Aug 13, 2010 9:52 am
by Sainath.Srinivasan
What do you mean by "they" ?

How are your jobs arranged, sequenced and scheduled at present ?

Posted: Fri Aug 13, 2010 12:34 pm
by chulett
Please be clear in your requirements. You have two jobs and need to run one or the other based on a parameter? Or run the second using a parameter from the first? Or ????

Posted: Sun Aug 15, 2010 3:08 am
by ray.wurlod
Where is the parameter value set? If it comes from the command line you could create a script that makes the decision. Functionally, of course, this would be identical to the equivalent Sequence.

Why won't "they" allow a Sequence? It's the logical solution.

Resist stupid requirements!

Posted: Sun Aug 15, 2010 10:23 am
by grimm336
This would be much easier wit sequencer. If you don't want to use seq then tell us how u r getting the parameters.....

Other wise you can have a wraper script and give the parameters decideing on the parameters let it call the required job.

Posted: Sun Aug 15, 2010 1:00 pm
by ray.wurlod
grimm336 wrote:This would be much easier wit sequencer. If you don't want to use seq then tell us how u r getting the parameters.....
DSXchange is not a mobile telephone. It is unnecessary, and unprofessional, to use SMS-style abbreviations here. A professional standard of written English aids those whose first language is not English.

The second person personal pronoun in English is spelled "you", the present tense of the verb "to be" is spelled "are".