NetBatch Manual

Attributes
NetBatch Manual522460-004
7-73
JOBID-ZERO Job Attribute
JOBID-ZERO Job Attribute
The JOBID-ZERO job attribute determines whether the scheduler assigns a
GMOMJOBID to a job’s executor-program process. The job executes under the
scheduler’s control if assigned a GMOMJOBID and outside that control if not.
OFF
makes the scheduler assign a GMOMJOBID to the job’s executor-program
process. As a result, the job executes under the schedulers control.
ON
prevents the scheduler from assigning a GMOMJOBID to the job’s executor-
program process. As a result, the job executes outside the scheduler’s control.
These considerations also apply:
The scheduler does not create a log file for the job.
Processes of the job cannot access the scheduler as a home terminal.
For this
reason, use the TERM attribute to specify a home terminal for the job.
For more information, see TERM Job Attribute on page 7-114.
The job is complete after the scheduler sends the startup message.
Considerations
The scheduler assigns the attribute JOBID-ZERO OFF to a job submitted
without
the JOBID-ZERO attribute.
The scheduler places 0 in the jobid parameter of the
PROCESS_CREATE_
procedure when JOBID-ZERO is set to ON and places
the job number in the parameter when JOBID-ZERO is set to OFF. For more
information about the procedure, see the Guardian Procedure Calls Reference
Manual.
Example
This example shows the effect of the JOBID-ZERO attribute. The scheduler assigns a
GMOMJOBID to the job with the attribute set to OFF, but not to the job with the
attribute set to ON. Note the use of the TERM attribute to direct home-terminal output
away from the scheduler.
> BATCHCOM $ZBAT; SUBMIT JOB GMOMJOBID, EXECUTOR-PROGRAM
DELAY,
STARTUP "1 MINS", NAME $YES, JOBID-ZERO OFF
Job GMOMJOBID Jobnumber 1 submitted
> STATUS $YES, DETAIL .
.
J[OBID]-Z[ERO] { OF[F] | ON }