NetBatch Manual
Commands
NetBatch Manual—522460-004
6-69
ASSUME ATTACHMENT-SET Command
ASSUME ATTACHMENT-SET Command
Use the ASSUME ATTACHMENT-SET command to set the default object keyword for
later commands to ATTACHMENT-SET. BATCHCOM substitutes this object keyword in
all commands you enter that do not include an object keyword.
Considerations
•
The ASSUME ATTACHMENT-SET command is available to all users.
•
Attachment-set commands you enter after the ASSUME ATTACHMENT-SET
command do not have to include the object keyword ATTACHMENT-SET.
•
Class, executor, job, and scheduler commands you enter after the ASSUME
ATTACHMENT-SET command must specify the object to which they apply.
•
The default object keyword when you start a BATCHCOM session is JOB.
•
ADP (an abbreviation of ASSIGNs, DEFINEs, and PARAMs) is an alias of the
object keyword ATTACHMENT-SET.
Example
The ASSUME command in this example specifies ATTACHMENT-SET as the default
object keyword for later commands. This specification enables the omission of the
keyword ATTACHMENT-SET from the SET and SHOW commands operating on that
object. The SUBMIT command fails because it does not specify an object (that is,
JOB), so BATCHCOM interprets it as an invalid command.
13} ASSUME ATTACHMENT-SET
14} SET SECURITY "NONO"
15} SHOW SECURITY
ATTACHMENT-SET ATTRIBUTES
security: "NONO"
16} SUBMIT TODAY, IN NBFILES.TODAY, OUT $S.#TODAY
-^-0290-
E Invalid command SUBMIT ATTACHMENT-SET
ASSU[ME] A[TTACHMENT]-S[ET]