NetBatch Management Programming Manual
Communicating With the NetBatch Subsystem
NetBatch Management Programming Manual—522462-003
2-4
Opening a Scheduler Programmatically
example, a RUN BATCHCOM command. These examples show explicit and implicit
OPEN commands:
For more information on the OPEN command, see the NetBatch Manual.
Opening a Scheduler Programmatically
To set up programmatic communication with the scheduler, your application must open
the scheduler using the mechanism appropriate to your programming language (for
example, Guardian procedure FILE_OPEN_ for C and TAL, the OPEN verb for
COBOL, or the #REQUESTER built-in function for the TACL program). Also, the
application must specify the scheduler’s process name in the form $scheduler-
name.#ZSPI; for example, $ZBAT.#ZSPI. The qualifier #ZSPI indicates that the
requester will be sending and receiving messages in SPI format. For examples of
programmatic scheduler opens, see Appendix C, Sample Programs.
OPEN Command Examples
Explicit
> BATCHCOM
BATCHCOM - T9190D30 - (31OCT94^01JUN94)
(C)1986 Tandem (C)2004 Hewlett Packard Development
Company, L.P.
1} OPEN $SCHD
NETBATCH SERVER - T9190D30 - (31OCT94-01JUN94) Time:
29JUL94 …
Implicit
RUN BATCHCOM command specifies a scheduler:
> BATCHCOM $SCHD
BATCHCOM - T9190D30 - (31OCT94^01JUN94)
(C)1986 Tandem (C)2004 Hewlett Packard Development
Company, L.P.
NETBATCH SERVER - T9190D30 - (31OCT94-01JUN94) Time:
29JUL94 …
RUN BATCHCOM command does not specify a scheduler, so the
first scheduler-related command after the session begins
opens $ZBAT by default:
> BATCHCOM
BATCHCOM - T9190D30 - (31OCT94^01JUN94)
(C)1986 Tandem (C)2004 Hewlett Packard Development
Company, L.P.
1} STATUS SCHEDULER
NETBATCH SERVER - T9190D30 - (31OCT94-01JUN94) Time:
29JUL94 …
SCHEDULER STATUS
Process : \MELRISK.$ZBAT Primary : 0,54 Backup :
1,55
…
Note. When BATCHCOM runs as a job’s executor-program process, the default scheduler is
the scheduler controlling the job.