NetBatch Manual

Commands
NetBatch Manual522460-004
6-153
SHUTDOWN SCHEDULER Command
Considerations
The SHUTDOWN SCHEDULER command is available to NetBatch supervisors
only.
SHUTDOWN SCHEDULER is one of two commands you can use to shut down a
scheduler. The other command, ABORT SCHEDULER, does not allow executing
and over-limit jobs to finish before shutdown. Like with SHUTDOWN
SCHEDULER, it stops suspended jobs immediately. For more information, see
ABORT SCHEDULER Command on page 6-30.
No scheduler or job control commands are effective after the SHUTDOWN
SCHEDULER command shuts down the scheduler.
Shutting down a scheduler results in the closure of its database files and log file.
The scheduler keeps details of its configuration at shutdown in its BATCHCTL file
for use during a warm start.
To restart a shutdown scheduler, do either of:
°
Warm start the scheduler:
1. Run the scheduler program NETBATCH.
2. Start the scheduler by using the START SCHEDULER command.
°
Cold start the scheduler:
1. Run the scheduler program NETBATCH.
2. Initialize the scheduler database with the ADD SCHEDULER command.
3. Start the scheduler by using the START SCHEDULER command.
For more information about scheduler cold-start and warm-start procedures, see
Section 3, Scheduler Planning, Configuration, and Management.
You can omit the object keyword SCHEDULER from the SHUTDOWN
SCHEDULER command only when SCHEDULER is the current assumed object.
For more information, see ASSUME SCHEDULER Command on page 6-73.
Examples
This example shows the SHUTDOWN SCHEDULER command shutting down a
scheduler after stopping a suspended job. The scheduler allows an executing job
to finish before shutdown. The example also shows the results of a job command
entered after shutdown.
96} STATUS JOB *
JOB JOBNAME USERID LOG STATE CLASSNAME
---- ---------------- ------- ---- ----------- --------------
35 ZBAT-0035 205,70 644 EXECUTING DEFAULT
36 ZBAT-0036 205,70 645 SUSPENDED DEFAULT
37 ZBAT-0037 205,70 READY DEFAULT