NetBatch Manual
Commands
NetBatch Manual—522460-004
6-73
ASSUME SCHEDULER Command
ASSUME SCHEDULER Command
Use the ASSUME SCHEDULER command to set the default object keyword for later
commands to SCHEDULER. BATCHCOM substitutes this object keyword in all
commands you enter that do not include an object keyword.
Considerations
•
The ASSUME SCHEDULER command is available to all users.
•
Scheduler commands you enter after the ASSUME SCHEDULER command do not
have to include the object keyword SCHEDULER.
•
Attachment-set, class, executor, and job commands you enter after the ASSUME
SCHEDULER command must specify the object to which they apply.
•
The default object keyword when you start a BATCHCOM session is JOB.
Example
This example shows the effect of the ASSUME SCHEDULER command. Because the
command sets the default keyword to SCHEDULER, BATCHCOM interprets the
STATUS command as STATUS SCHEDULER and executes it as such. The SUBMIT
command fails because it does not specify the object keyword JOB. BATCHCOM
interprets it as an invalid command.
1} ASSUME SCHEDULER
2} STATUS
SCHEDULER STATUS
Process : \MELRISK.$ZBAT Primary : 0,65 Backup : 1,45
Database: \MELRISK.$QA.ZBAT
Logfile : \MELRISK.$QA.ZBAT.LOGAAB
Time : 02SEP94 16:13:09 .
.
3} SUBMIT CLEANUP-JOB, IN CLEANUP, OUT $S.#CLEANUP
-^-0290-
E Invalid command SUBMIT SCHEDULER
ASSU[ME] SC[HEDULER]