605 pts.
 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: November 12, 2009  3:32 PM
UPDATED: November 13, 2009  6:50 AM

Answer Wiki:
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 Wiki Answer Submitted:  November 13, 2009  6:50 am  by  Whatis23   5,665 pts.
All Answer Wiki Contributors:  Whatis23   5,665 pts. , CharlieBrowne   32,785 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

How to reschedule a single job on AS400?

 30 pts.

 

HI There,

There is a maintanace work scheduled and i need to put a job on hold. Can some one advice how i can put a single job on hold?

Thanks in advance.

 30 pts.

 

How is the job scheduled now? — Tom

 107,735 pts.

 

To put one job on hold use WRKJOBSCDE. Find the job in question and flag with a “3″. That will hold the job. When you want to restart it flag it with a “6″.

 3,890 pts.

 

The Job Scheduler is now a system job and can not be stopped or started without running a IPL.
Save the QDFTJOBSCD object “Normal” production status to a *SAVF.
HLDJOBCDE *all
Maintenance completed:
Restore the “Normal” configuration QUSRSYS/QDFTJOBSCD from the *SAVF
Good Luck!

 695 pts.