NetBatch Manual

Commands
NetBatch Manual522460-004
6-41
ADD CLASS Command
scheduler never scans the class for jobs. You cannot assign a class to an executor
until you add the class to the scheduler.
JOBCLASS is an alias of the object keyword CLASS.
You can omit the object keyword CLASS from the ADD CLASS command only
when CLASS is the current assumed object. For more information, see ASSUME
CLASS Command on page 6-70.
Examples
To add a class with the attribute INITIATION OFF:
1} ADD CLASS DEVELOPMENT, INITIATION OFF
Class DEVELOPMENT added
This example shows a class adopting its INITIATION attribute from the working-
attributes set:
2} SHOW CLASS
CLASS ATTRIBUTE
initiation: On
3} ADD CLASS PRODUCTION
Class PRODUCTION added
4} INFO CLASS PRODUCTION
CLASS ATTRIBUTE for PRODUCTION
initiation: On
This example shows BATCHCOM creating an input file (CLASSES) containing
ADD CLASS commands. The commands reflect the configuration of scheduler
$ZBAT’s classes. The example then shows BATCHCOM executing the commands
from the file to configure the classes of scheduler $BANK.
> BATCHCOM $ZBAT; INFO CLASS /OUT CLASSES/ *, OBEY-FORM
> FUP COPY CLASSES
ADD CLASS DEVELOPMENT, INITIATION Off
ADD CLASS PRODUCTION, INITIATION On
> BATCHCOM /IN CLASSES/ $BANK
ADD CLASS DEVELOPMENT, INITIATION Off
Class DEVELOPMENT added
ADD CLASS PRODUCTION, INITIATION On
Class PRODUCTION added
This example shows execution of an ADD CLASS command and lists the event
relating to that command from the scheduler log file:
> LOGON SUPER.SUPER, password
> BATCHCOM $SCHD; ADD CLASS CL1, INITIATION OFF
Class CL1 added
> FUP COPY LOGAAF,,SHARE .
.
ADD CLASS CL1 U_255,255 H_\MELBDEV.$ZTN0.#PTY4