Holding and restarting the job scheduler
60 pts.
0
Q:
Holding and restarting the job scheduler
We have A LOT of jobs scheduled through the Advanced Job Scheduler (wrkjobjs).   We have to do some system maintenance and need to prevent the scheduled jobs from starting while we perform the maintenance.  In the past, the operator has gone through the entire list of jobs on the scheduler and put all the jobs on hold individually that might start during that time frame.  In addition to being time consuming it is also subject to human error (missed holds or releases). 

I beleive there is a command that can hold the entire job scheduler, but am unsure of the specifics.  Does anyone know of such a command and how it works?

And if there is a command to hold the job scheduler, how is it restarted?  When it is restarted, do the jobs that were scheduled to run while it was on hold start automatically, or must they be submitted manually?



Software/Hardware used:
AS/400
ASKED: Nov 12 2009  3:32 PM GMT
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
0
7555 pts.
0
A:
 RATE THIS ANSWER
0
Click to Vote:
  •   0
  •  0
  • AddThis Social Bookmark Button
HLDJOBSCDE and RLSJOBSCDE both have an option for *ALL

__________________________

I had a scenario similiar to yours at a large shop where dozens of jobs where manually being held then released.
Instead of holding then releasing the scheduled jobs, we held the few jobqs they were submitted to then released those after maintenance was complete.
In some instances, we had to change the number of threads in the jobq to single threaded to ensure certain jobs completed before others started. The subsystem does not have to be ended then restarted to take effect, it can be done of the fly.

============================================================

Why not just end the scheduler (command ENDJS), do whatever needs to be done, then start the scheduler (command STRJS) when you're finished?

Tom
Last Answered: Nov 13 2009  6:50 AM GMT by TomLiotta   7555 pts.
Latest Contributors: Whatis23   4040 pts., CharlieBrowne   6350 pts.
0
0
Discuss This Answer:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _



0