NetBatch Manual
Job Planning, Submission, and Management
NetBatch Manual—522460-004
4-12
ZBAT:JOBINFO
Dissociating a Job From the Scheduler
To prevent the scheduler from assigning a GMOMJOBID to a job’s executor-program
process, submit the job with the attribute JOBID-ZERO ON. This attribute dissociates
the job completely from the scheduler.
Specifying TERM, IN, OUT, and NOWAIT for a Dissociated
Process
These recommendations relate to specifying run options TERM, IN, OUT, and
NOWAIT in a TACL RUN command that specifies JOBID 0:
•
A dissociated process cannot open a scheduler for home terminal, input, or output
purposes unless the open is by means of the SPI process name qualifier #ZSPI.
(For example, TERM $ZBAT.#ZSPI.) This limitation means the TERM, IN, and OUT
run options of a dissociated process cannot specify a scheduler if the process does
not send SPI open requests.
For information on using the #ZSPI qualifier, see the SPI Programming Manual.
•
A dissociated process should have the NOWAIT run option specified. Running the
process with this option lets the job finish before the process and therefore release
the job’s executor.
For more information on run options TERM, IN, OUT, and NOWAIT, see the TACL
Reference Manual.
ZBAT:JOBINFO
ZBAT:JOBINFO is a TACL macro supplied with NetBatch software (in product file
ZBATSEGF). The macro expands to a space-separated job name and number. By
invoking the macro from a job’s input file, you can return the job’s name and number to
its output file. For example:
> FUP COPY INFILE
#PUSH JOBNAME, JOBNUMBER
#SETMANY JOBNAME JOBNUMBER, [ZBAT:JOBINFO]
#OUTPUT Job [JOBNAME] (job number [JOBNUMBER]) now running
> BATCHCOM $ZBAT; SUBMIT JOB, EXECUTOR-PROGRAM TACL, IN
INFILE,
OUT [#MYTERM]
Job ZBAT-0003 Jobnumber 3 submitted
> PAUSE
TACL …
.
.
Job ZBAT-0003 (job number 3) now running