NetBatch Manual

Attributes
NetBatch Manual522460-004
7-115
TERM Job Attribute
Considerations
A job submitted without the TERM attribute uses the scheduler as its home
terminal.
A job with the RUND ON attribute must also have the TERM attribute
specifying a
home terminal for Debug or Inspect output. Without the TERM
attribute, the job fails during startup and goes into the SPECIAL-4 state.
Processes of a job with the JOBID-ZERO ON attribute cannot access the
scheduler
as a home terminal. For this reason, use the TERM attribute to specify
a home terminal for the job.
The scheduler places the value of the TERM attribute in the hometerm
parameter
of the PROCESS_CREATE_ procedure. For more information about
the procedure, see the Guardian Procedure Calls Reference Manual.
Example
This example shows the submission of two jobsone with the TERM attribute, the
other without. The job with the attribute sends home-terminal output to the specified
terminal. The job without the attribute sends home-terminal output to the scheduler.
> BATCHCOM $ZBAT; SUBMIT JOB TERM, EXECUTOR-PROGRAM DELAY,
STARTUP "1 MINS", TERM $ZTN0.#PTY6
Job TERM Jobnumber 5 submitted
> STATUS *, GMOMJOBID $ZBAT.5, DETAIL .
.
Myterm: $ZTN0.#PTY6 .
.
GMOMJOBID: $ZBAT.5
> BATCHCOM $ZBAT; SUBMIT JOB NO-TERM, EXECUTOR-PROGRAM DELAY,
STARTUP "1 MINS"
Job NO-TERM Jobnumber 6 submitted
> STATUS *, GMOMJOBID $ZBAT.6, DETAIL .
.
Myterm: $ZBAT .
.
GMOMJOBID: $ZBAT.6