NetBatch Manual
Attributes
NetBatch Manual—522460-004
7-70
JOB-LOG Job Attribute
Example
This example shows the effect of the INITIATION scheduler attribute. When set to OFF,
the attribute disables job startup. When set to ON, the attribute enables job startup.
40} STATUS JOB (ZBAT*)
JOB JOBNAME USERID LOG STATE CLASSNAME
---- ---------------- ------- ---- ----------- ---------
7 ZBAT-0007 255,255 READY DEFAULT
8 ZBAT-0008 255,255 READY ADMIN
9 ZBAT-0009 255,255 READY SALES
10 ZBAT-0010 255,255 READY ACCOUNTS
41} INFO SCHEDULER, INITIATION
SCHEDULER ATTRIBUTES
initiation: Off
42} ALTER SCHEDULER, INITIATION ON
Scheduler altered
43} STATUS JOB (ZBAT*)
JOB JOBNAME USERID LOG STATE CLASSNAME
---- ---------------- ------- ---- ----------- ---------
7 ZBAT-0007 255,255 127 EXECUTING DEFAULT
8 ZBAT-0008 255,255 128 EXECUTING ADMIN
9 ZBAT-0009 255,255 129 EXECUTING SALES
10 ZBAT-0010 255,255 130 EXECUTING ACCOUNTS
JOB-LOG Job Attribute
The JOB-LOG job attribute directs log-file events for a job to a specified file.
log-file
is the name of a job log file. The file can be a device, a process, or any type of
unstructured disk file except an EDIT file. For a disk file, these conditions apply:
•
If the file exists and is not an EDIT file, the scheduler opens it and
appends
events. If the file is an EDIT file, the command fails. If the file does
not exist, the scheduler creates it with a file code of 847.
•
Only one process at a time can write to a disk log file.
BATCHCOM expands a partially qualified file name by using the defaults specified
in the last VOLUME command. If there was no such command, the defaults current
at the start of the session apply.
Specifying JOB-LOG without log-file prevents the creation of a job log file.
Specifying a spooler location in log-file for a job whose OUT attribute specifies
a spooler collector process separates the log file from other spooler output of the
job. (JOB-LOG does this by making the spooler assign a different batch number to
the log file.) The location can be the same as or different from that specified by the
OUT attribute—the effect is the same.
J[OB]-L[OG] [ log-file ]