NetBatch Manual

Attributes
NetBatch Manual522460-004
7-87
OUT Job Attribute
OUT Job Attribute
The OUT job attribute specifies the output file to which the scheduler writes data
produced by an executing job. This data can include the job’s log file, executor-
program output, and output from processes started by the executor program.
file-name
is the name of an output file. The file can be a device, a process, or a disk file. If
you omit file-name, the scheduler passes spaces as the output file name. (The
effect on the job of having spaces passed as the output file name depends on the
job’s executor program.) Specifying a nonexistent disk file for a job whose executor
program is a TACL process makes the process create an EDIT 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.
Considerations
A job submitted without the OUT attribute adopts the DEFAULT-OUT scheduler
attribute. To display the value of this attribute, use the INFO SCHEDULER
command.
The scheduler does not create a log file for a job that does not have the JOB-LOG
attribute and whose OUT attribute specifies a device, a nonspooler collector
process, or a disk file. The scheduler creates the file, however, if the job has the
JOB-LOG attribute directing log-file events to a specified file. For more information,
see JOB-LOG Job Attribute on page 7-70.
A process that sends output to a nonterminal device or disk file opened for
exclusive access by another process abends if it cannot handle file-system error
12 (file in use). To prevent a job from failing because of this error, check that child
processes of a job’s executor program send their output to locations different from
that specified by the OUT attribute.
A job whose OUT attribute specifies a spooler collector process creates at least
two spooler jobsæone for the log file and one for executor-program output. In
addition, the job creates a separate spooler job for the output of each process
created by the executor program.
For more information on NetBatch jobs and the spooler, see the manual for the
spooler product you are using.
Examples
This example shows submission of a job whose output file is a spooler collector
process. The example shows the spooler jobs created by the job’s processes.
OU[T] [ file-name ]