NetBatch Manual

Commands
NetBatch Manual522460-004
6-72
ASSUME JOB Command
ASSUME JOB Command
Use the ASSUME JOB command to set the default object keyword for later commands
to JOB. BATCHCOM substitutes this object keyword in all commands you enter that do
not include an object keyword.
Considerations
The ASSUME JOB command is available to all users.
Job commands you enter after the ASSUME JOB command do not have to include
the object keyword JOB.
Attachment-set, class, executor, and scheduler commands you enter after the
ASSUME JOB command must specify the object to which they apply.
The default object keyword when you start a BATCHCOM session is JOB.
Examples
The object keyword assumed by BATCHCOM in this example is JOB (the default
at the start of a session):
34> BATCHCOM
1} SHOW
JOB ATTRIBUTES
volume: $DATA7.NB, "AAAO"
jobid-zero: Off
user: 205,70
This example shows the ASSUME JOB command specifying the object keyword
for a series of SET JOB and SUBMIT JOB commands. The last ALTER command
fails because it does not specify the object to which it applies (CLASS).
BATCHCOM therefore interprets it as an invalid ALTER JOB command instead of
the intended ALTER CLASS command.
29} ALTER CLASS DEFAULT, INITIATION OFF
Class DEFAULT altered
30} ASSUME JOB
31} SET CLASS DEFAULT
32} SUBMIT J04, IN D4; SUBMIT J05, IN D5; SUBMIT J06, IN D6
Job J04 job number 24 submitted
Job J05 job number 25 submitted
Job J06 job number 26 submitted
33} ALTER DEFAULT, INITIATION ON
-^-0290-
E Invalid command ALTER JOB
ASSU[ME] JOB