NetBatch Manual

Job Planning, Submission, and Management
NetBatch Manual522460-004
4-35
Specifying a Job’s ASSIGNs, DEFINEs, and
PARAMs
Example
This example shows submission of a TACL job whose ATTACHMENT-SET attribute
specifies the job’s ASSIGNs, DEFINEs, and PARAMs. The job writes its ASSIGNs,
DEFINEs, and PARAMs to an output file to illustrate their propagation by the scheduler.
> FUP COPY INFILE
ASSIGN
INFO DEFINE **
PARAM
> BATCHCOM $SCHD; INFO ATTACHMENT-SET (SUPER.FPP)STANDARD,
ASSIGN, DEFINE, PARAM
ATTACHMENT-SET ATTRIBUTES for (SUPER.FPP)STANDARD
attachments: DEFINE =OUT, CLASS SPOOL, LOC \MELBQAT.$S
DEFINE =_DEFAULTS, CLASS DEFAULTS, VOLUME
\MELBDEV.$NB.NOSUBVOL
ASSIGN TRANSLOG, $DATA7.OPS.TRANSLOG
PARAM DAY TUESDAY
> BATCHCOM $SCHD; SUBMIT JOB S, EXECUTOR-PROGRAM TACL, IN
INFILE, OUT OUTFILE, ATTACHMENT-SET (SUPER.FPP)STANDARD
Job S job number 9 submitted
> FUP COPY OUTFILE
ASSIGN
TRANSLOG
Physical file: $DATA7.OPS.TRANSLOG
INFO DEFINE **
Define Name =OUT
CLASS SPOOL
LOC \MELBQAT.$S
Define Name =_DEFAULTS
CLASS DEFAULTS
VOLUME \MELBDEV.$NB.NOSUBVOL
PARAM
DAY .TUESDAY.
Adding Attachment Sets
The ADD ATTACHMENT-set command adds an attachment set to a scheduler. For
example:
3} CHANGEUSER FPP.MANAGER password
3} ADD ATTACHMENT-SET SALES, (ASSIGN ORDERS,
$BIG2.MRKTNG.ORDERS), (PARAM PERIOD Q31993),
(PARAM REGION 8), (PARAM COMMISSION 10%)
Attachment-set (FPP.MANAGER)SALES added
Attachment-Set Attributes
An attachment set’s attributes specify its ASSIGNs, DEFINEs, PARAMs, and security,
and determine whether the set is permanent or temporary. Table 4-6 on page 4-36 lists
the attributes, describes their functions, and gives their default values. For more
information about the attributes, see Section 7, Attributes.