NetBatch Manual
Attributes
NetBatch Manual—522460-004
7-71
JOB-LOG Job Attribute
For a job with the ATTACHMENT-SET attribute, log-file can specify a DEFINE
from the attachment set.
Considerations
•
The scheduler creates a spooler-job log file for a job without the JOB-LOG
attribute
if the job’s OUT attribute specifies a spooler collector process. The
scheduler does not create a log file if the OUT attribute specifies a device, a disk
file, or a nonspooler collector process.
•
To remove the JOB-LOG attribute from a job, use the ALTER JOB command’s
REMOVE JOB-LOG qualifier. For more information, see ALTER JOB Command on
page 6-62.
Examples
•
This example shows the submission and execution of a job whose OUT attribute
specifies a nonspooler process. The JOB-LOG attribute directs the job’s log-file
output to a terminal. Without the attribute, the job would not have a log file.
> BATCHCOM $ZBAT; SUBMIT JOB, EXECUTOR-PROGRAM TACL, IN
INFILE,
OUT $NULL, JOB-LOG [#MYTERM]
Job ZBAT-0016 Jobnumber 16 submitted
> BATCHCOM $ZBAT; INFO JOB 16, OUT, JOB-LOG
JOB ATTRIBUTES for ZBAT-0016
jobnumber: 16
out: \MELBDEV.$NULL
job-log: \MELBDEV.$ZTN0.#PTY4
> PAUSE
21SEP94 11:17:20 BEGIN JOB (SUPER.SUPER)ZBAT-0016:1 E_E1 … .
.
•
This example shows two similar jobs that send their output to a spooler. The first
job does not have the JOB-LOG attribute, so it has a log file and an executor-
program output file created in the spooler (spooler jobs 80 and 81 respectively).
The second job uses the JOB-LOG attribute to prevent log-file creation, so it has
an executor-program output file only (spooler job 82).
4} SUBMIT JOB, EXECUTOR-PROGRAM TACL, IN INFILE, OUT $S.#RUN1
Job ZBAT-0017 Jobnumber 17 submitted
5} INFO JOB 17, OUT, JOB-LOG
JOB ATTRIBUTES for ZBAT-0017
jobnumber: 17
out: \MELBDEV.$S.#RUN1
6} SUBMIT JOB, EXECUTOR-PROGRAM TACL, IN INFILE, OUT
$S.#RUN2,
JOB-LOG
Job ZBAT-0018 Jobnumber 18 submitted
7} INFO JOB 18, OUT, JOB-LOG
JOB ATTRIBUTES for ZBAT-0018
jobnumber: 18
out: \MELBDEV.$S.#RUN2