I have a CL program which executes a series of QShell commands. As the various commands execute, it spawns a new BATCHI (batch immediate) job. When the system is a little busier, it can exceed MAXJOBS limit for the subsystem and then things start to fail with a message that there are not enough system resources.
Is there a way to write a script or whatever and wait for all or some of the previous BATCHI jobs to complete?
Is there a way to write a script or whatever and wait for all or some of the previous BATCHI jobs to complete?