Hello,
We have to write a multi-instance job that should be triggered based on a run-time parameter. So if at run time we want the job to run for 2 subscribers, it should be triggered 2 times parallely, however if this count it more than 5, then we want to queue up the jobs.
So the first 5 jobs should be triggered simultaneously, but the 6th one should start only after one of the currently running jobs have completed. So on and so forth..
I read through the forum and figured that we can probably achieve this by putting a nested condition and counting the number of instances of the job that are currently executing.
Can someone please help me with how can i get the number of instances that are currently executing of a particular job?
Your help is much appreciated!
Count of parallel instances that are running
Moderators: chulett, rschirm, roy
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
Code: Select all
DSGetJobInfo(hJob, DSJ.JOBINVOCATIONS)
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.