NetBatch Management Programming Manual

Communicating With the NetBatch Subsystem
NetBatch Management Programming Manual522462-003
2-2
Starting a Scheduler
Starting a Scheduler
The NetBatch scheduler must be running before your application can open and
communicate with it. You can start a scheduler interactively or programmatically.
Starting a Scheduler Interactively
To start a scheduler interactively, use the TACL RUN command to run the scheduler
program NETBATCH. When NETBATCH is running, use the BATCHCOM commands
ADD SCHEDULER (cold starts only) and START SCHEDULER (cold starts and warm
starts) to make the scheduler available for use. These examples show interactive cold-
start and warm-start procedures:
Figure 2-1. Steps in Communicating With the NetBatch Subsystem
Procedure Example
Cold start
> NETBATCH /NAME $SCHD, NOWAIT, PRI 130, CPU 0/ $DATA7.SCHD
!
> BATCHCOM $SCHD; ADD SCHEDULER, BACKUPCPU 1
Scheduler added
> BATCHCOM $SCHD; START SCHEDULER
Scheduler started
Warm start
> NETBATCH /NAME $SCHD, NOWAIT, PRI 149, CPU 2/ $DATA7.SCHD
> BATCHCOM $SCHD; ALTER SCHEDULER, BACKUPCPU 3
Scheduler altered
> BATCHCOM $SCHD; START SCHEDULER
Scheduler started
VST002.vsd
Application
NetBatch
Scheduler
1. Open the scheduler.
2. Build and send a command
message.
3. Receive and decode the command-
message response.
4. Close the scheduler.
Receive and interpret the command
message.
Execute the command and return a
response.