NetBatch Manual
Attributes
NetBatch Manual—522460-004
7-20
ATTACHMENT-SET Job Attribute
Considerations
•
You must have execute access to the attachment set you want to assign to a
job. For
example, NB.USER can assign set (SUPER.SUPER)ADP2 to a job if the
set’s security is “OAAA” but not if the security is “OAGA.”
•
A job can have up to three attachment sets. The order in which you specify the
sets is the order in which the scheduler supplies them to the job. For example,
specifying sets C, B, and A in that order makes the scheduler process set C first,
set B second, and set A third.
If the name of an ASSIGN, DEFINE, or PARAM from a set conflicts with a name
from a set specified earlier, the scheduler overwrites the earlier ASSIGN, DEFINE,
or PARAM with the details of the later ASSIGN, DEFINE, or PARAM.
•
To dissociate an attachment set from a job, use the ALTER JOB command
to set the
job’s ATTACHMENT-SET attribute to the names of the attachment sets
that are to remain assigned to the job. To dissociate all attachment sets from the
job, use the ALTER JOB command to specify ATTACHMENT-SET without any
options.
•
BATCHCOM maintains the #CURRENT variable as follows:
°
Sets the variable’s value on execution of an ADD or ALTER attachment-
set
command to the set specified by the command. For example:
2} INFO ATTACHMENT-SET #CURRENT
-^-0345-
E Undefined substitution
3} ADD ATTACHMENT-SET (NB.USER)S1; INFO ADP #CURRENT
Attachment-set (NB.USER)S1 added
ATTACHMENT-SET ATTRIBUTES for (NB.USER)S1
security: "UUUU"
temporary: Off
4} ALTER ATTACHMENT-SET (NB.USER)XYZ, SECURITY "AAAA"
Attachment-set (NB.USER)XYZ altered
5} INFO ATTACHMENT-SET #CURRENT
ATTACHMENT-SET ATTRIBUTES for (NB.USER)XYZ
security: "AAAA"
temporary: Off
°
Sets the variable’s value to null on execution of a RESET or SET
attachment-set
command or an OPEN scheduler command. For example:
9} INFO ATTACHMENT-SET #CURRENT
ATTACHMENT-SET ATTRIBUTES for (SUPER.FPP)DATE
security: "NNNN"
temporary: Off
10} OPEN $SCHD
NETBATCH SERVER - T9190D20 …
11} INFO ATTACHMENT-SET #CURRENT
-^-0345-
E Undefined substitution