NetBatch Manual

Commands
NetBatch Manual522460-004
6-83
DELETE EXECUTOR Command
executor-name
is the name of an executor.
Considerations
The DELETE EXECUTOR command is available to NetBatch supervisors only.
A job using an executor that is the subject of a DELETE EXECUTOR command
finishes before the scheduler deletes the executor. The executor’s state pending
deletion in this circumstance is DELETE.
After deleting an executor, you must reassign classes that were unique to it to
other executors. If you do not do this, the scheduler never scans those classes for
jobs. To reassign classes, use the ADD EXECUTOR or ALTER EXECUTOR
command.
You can omit the object keyword EXECUTOR from the DELETE EXECUTOR
command only when EXECUTOR is the current assumed object. For more
information, see ASSUME EXECUTOR Command on page 6-71.
Examples
This example shows BATCHCOM’s response to a DELETE EXECUTOR
command:
25} DELETE EXECUTOR CPU2-EXEC
Executor CPU2-EXEC deleted
The scheduler log file event resulting from the DELETE EXECUTOR command
from the previous example is:
DELETE EXECUTOR CPU2-EXEC U_255,255 H_\MELBDEV.$ZTN0.#PTY4
This example shows the deletion of an executor (CPU0-EXEC) following the
reassignment of the executor’s unique class:
40} INFO EXECUTOR *, CLASS
EXECUTOR ATTRIBUTES for CPU0-EXEC
classes: A
DEFAULT
EXECUTOR ATTRIBUTES for CPU1-EXEC
classes: DEFAULT
41} ALTER EXECUTOR CPU1-EXEC, CLASS (A, DEFAULT)
Executor CPU1-EXEC altered
42} DELETE EXECUTOR CPU0-EXEC
Executor CPU0-EXEC deleted
43} INFO EXECUTOR *, CLASS
EXECUTOR ATTRIBUTES for CPU1-EXEC
classes: A
DEFAULT