NetBatch Manual
Scheduler Planning, Configuration, and
Management
NetBatch Manual—522460-004
3-37
Deleting Executors and Classes
Deleting Classes
The DELETE CLASS command deletes a class from a scheduler. For example:
12} DELETE CLASS ENFORM-JOBS
Class ENFORM-JOBS deleted
The scheduler disallows deletion of a class assigned to an executor. To delete such a
class, dissociate it from the executor by using the ALTER EXECUTOR command
before the DELETE CLASS command. For example:
33} DELETE CLASS CL2
2104-E CLASS CL2 is in use by one or more executors. To
delete the CLASS, remove it from the executors first.
34} INFO EXECUTOR *, CLASS
EXECUTOR ATTRIBUTES for EX1
classes: CL1
CL2
35} ALTER EXECUTOR EX1, CLASS CL1
Executor EX1 altered
36} DELETE CLASS CL2
Class CL2 deleted
Deleting a class does not delete the class’s jobs. However, the jobs are never available
for execution unless you reassign them to another class by using the ALTER JOB
command. Alternatively, add a new class with the same name as the deleted class.
Figure 3-6 on page 3-37 illustrates class deletion and reassignment of a deleted
class’s jobs.
Figure 3-6. Example of DELETE CLASS Command
Job
J1
Job
J2
Job
J3
Job
J4
Class
CL1
Class
CL2
Executor
EX1
CPU 0
Executor and class
configuration before
ALTER EXECUTOR,
DELETE CLASS, and
ALTER JOB commands:
Job
J1
Job
J2
Job
J3
Job
J4
Class
CL1
Class
CL2
Executor
EX1
CPU 0
Executor and class
configuration after
command:
ALTER EXECUTOR EX1,
Job
J1
Job
J2
Job
J3
Job
J4
Class
CL1
Executor
EX1
CPU 0
Executor and class
configuration after
command:
DELETE CLASS CL2
Job
J1
Job
J2
Job
J3
Job
J4
Class
CL1
Executor
EX1
CPU 0
Executor and class
configuration after
commands:
ALTER JOB J3, CLASS CL1
ALTER JOB J4, CLASS CL1
CLASS
CL1
VST008.vsd