NetBatch Manual
Job Planning, Submission, and Management
NetBatch Manual—522460-004
4-34
Specifying a Job’s ASSIGNs, DEFINEs, and
PARAMs
Examples
•
This example shows submission of a TACL master job that invokes the
ZBAT:RELEASE macro to release a dependent job. The scheduler flags the
dependent job as released by the master job after it executes the master.
1} INFO JOB DEPENDENT-JOB, WAITON
JOB ATTRIBUTES for DEPENDENT-JOB
jobnumber: 20
waiton: MASTER-JOB-1, Not Released
MASTER-JOB-2, Not Released
2} RUN EDIT; GET TACLIN !; ADD
TEXT EDITOR - T9601D20 - (01JUN93)
CURRENT FILE IS $DATA7.USER.TACLIN
1 ZBAT:RELEASE \MELBDEV.$ZBAT DEPENDENT-JOB
2 //
*EXIT
3} SUBMIT JOB MASTER-JOB-1, EXECUTOR-PROGRAM TACL, IN TACLIN
Job MASTER-JOB-1 Jobnumber 21 submitted
4} INFO DEPENDENT-JOB, WAITON
JOB ATTRIBUTES for DEPENDENT-JOB
jobnumber: 20
waiton: MASTER-JOB-1, Released
MASTER-JOB-2, Not Released
•
This example shows submission of an NBEXEC master job that executes the
$RELEASE command to release a dependent job. The scheduler flags the
dependent job as released by the master job after it executes the master.
10} INFO DEPENDENT-JOB, WAITON
JOB ATTRIBUTES for DEPENDENT-JOB
jobnumber: 20
waiton: MASTER-JOB-1, Released
MASTER-JOB-2, Not Released
11} RUN EDIT; GET NBEXECIN !; ADD
TEXT EDITOR - T9601D20 - (01JUN93)
CURRENT FILE IS $DATA7.USER.NBEXECIN
1 $RELEASE \MELBDEV.$ZBAT, DEPENDENT-JOB
2 //
*EXIT
12} SUBMIT JOB MASTER-JOB-2, EXECUTOR-PROGRAM NBEXEC, IN
NBEXECIN
Job MASTER-JOB-2 Jobnumber 22 submitted
13} INFO DEPENDENT-JOB, WAITON
JOB ATTRIBUTES for DEPENDENT-JOB
jobnumber: 20
waiton: MASTER-JOB-1, Released
MASTER-JOB-2, Released
Specifying a Job’s ASSIGNs, DEFINEs, and PARAMs
The ATTACHMENT-SET attribute links an attachment set to a job. When the job runs,
the scheduler propagates the set’s ASSIGNs, DEFINEs, and PARAMs to the job’s
executor-program process.