Controlling Multiple instance of a job

A forum for discussing DataStage<sup>®</sup> basics. If you're not sure where your question goes, start here.

Moderators: chulett, rschirm, roy

Post Reply
Maximus_Jack
Premium Member
Premium Member
Posts: 139
Joined: Fri Apr 11, 2008 1:02 pm

Controlling Multiple instance of a job

Post by Maximus_Jack »

Hi

A job has to run in multiple instance taking the tablenames from a flat file as the invocation ID, but at any point there should not be more than 5 instances of the job, i have written a script where the job picks the table name and runs in multiple instance, but couldn't figure out how to control the number of instance

is there any way to do it?

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

Post by chulett »

Your script would have to count the number of times the job had been launched and stop at 5. You could also monitor the number running and when it drops below 5, launch more until it is back at 5. Repeat until you run out of table names.
-craig

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