Holding and restarting the job scheduler

620 pts.
Tags:
Advanced Job Scheduler
AS/400 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

Answer Wiki

Thanks. We'll let you know when a new response is added.

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

Discuss This Question: 5  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • Sagarika
    How to reschedule a single job on AS400?
    30 pointsBadges:
    report
  • Sagarika
    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 pointsBadges:
    report
  • TomLiotta
    How is the job scheduled now? -- Tom
    125,585 pointsBadges:
    report
  • ToddN2000
    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".
    8,925 pointsBadges:
    report
  • PGMBOB
    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!
    990 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following