NetBatch Manual
Scheduler Planning, Configuration, and
Management
NetBatch Manual—522460-004
3-27
Automating Scheduler Configuration
Using EDIT to Create a Scheduler Configuration File
Step 1: Create and Open a File for the Scheduler’s Configuration
Commands
Create and open a file for the scheduler’s configuration commands by using the EDIT
program:
12> EDIT SCHDCONF !
CURRENT FILE IS $DATA7.SCHD.SCHDCONF
Step 2: Add the Configuration Commands to the File
Add the configuration commands to the file, then close the file and stop the EDIT
program:
*ADD
1 ALTER SCHEDULER, AT-ALLOWED ON, DEFAULT-EXECUTOR-
PROGRAM FUP
2 ADD CLASS DEFAULT
3 ADD EXECUTOR EXEC-0, CLASS DEFAULT, CPU 0
4 START EXECUTOR EXEC-0
5 //
*EXIT
>
Using INFO Commands to Create a Scheduler Configuration
File
The prerequisite to using these commands is a running scheduler whose attributes you
want to capture in BATCHCOM-command format.
Step 1: Execute INFO Commands and Send Their Output to a Disk File
Execute INFO SCHEDULER, INFO CLASS *, and INFO EXECUTOR * commands that
include the OBEY-FORM qualifier and send their output to a disk file.
Step 2: Display the Commands in the File
Display the commands in the file by using the EDIT program, then add, update, and
delete commands as necessary:
> EDIT ZBATCONF; LIST ALL
CURRENT FILE IS $NB.TEST.ZBATCONF
Note. To add job details to the file, use the INFO JOB* command with the OBEY-FORM
qualifier:
> BATCHCOM $ZBAT; INFO SCHEDULER /OUT ZBATCONF/, OBEY-FORM;
INFO CLASS /OUT ZBATCONF/ *, OBEY-FORM; INFO EXECUTOR /OUT
ZBATCONF/ *, OBEY-FORM
>