NetBatch Manual

Commands
NetBatch Manual522460-004
6-70
ASSUME CLASS Command
ASSUME CLASS Command
Use the ASSUME CLASS command to set the default object keyword for later
commands to CLASS. BATCHCOM substitutes this object keyword in all commands
you enter that do not include an object keyword.
Considerations
The ASSUME CLASS command is available to all users.
Class commands you enter after the ASSUME CLASS command do not have to
include the object keyword CLASS.
Attachment-set, executor, job, and scheduler commands you enter after the
ASSUME CLASS command must specify the object to which they apply.
The default object keyword when you start a BATCHCOM session is JOB.
JOBCLASS is an alias of the object keyword CLASS.
Example
This example shows the effect of the ASSUME CLASS command. Because the
command sets the default keyword to CLASS, BATCHCOM interprets the ADD
command as ADD CLASS and executes it as such. The STATUS command fails
because it does not specify an object keyword. BATCHCOM interprets it as an invalid
command.
13} ASSUME CLASS
14} ADD TEMP-1, INITIATION OFF
Class TEMP-1 added
15} STATUS
0290-E Invalid command STATUS CLASS
ASSU[ME] CL[ASS]