COBOL Manual for TNS and TNS/R Programs

Printer and Spooler Output
HP COBOL Manual for TNS and TNS/R Programs522555-006
30-4
Jobs
Jobs
A job is analogous to a file. When you write to the spooler, you are creating a job. The
spooler assigns each job a number. It starts at 1 and advances by 1 up to a maximum
(specified when the spooler was started), not to exceed 4095. When the spooler
reaches the maximum job number, it starts over with 1. If the job number the spooler
tries to use is currently being used, the spooler advances until it finds a job number
that is not being used.
Each job has an owner. When an application program opens the spooler collector for
output, the created job is marked as owned by the user number of the application
program. Unlike a file, a spooler job does not have four-fold security; only the individual
owner (or a system operator in the super-group) can print, delete, or otherwise
manipulate a job.
Using SPOOLCOM, you can transfer ownership of a job to another user. If one spooler
reroutes a job to another spooler on the same system or on a different system in an
Expand network, the owner of the job on the second spooler is the same as the owner
was on the first spooler (typically, the system operator; therefore, if your spooler
reroutes your job to another spooler, you are no longer the owner of the job.
Jobs have six primary attributes:
Location
State
Number of Copies
Priority
Report Name
Form Name
Location
A job’s location is the job’s logical destination. Its physical destination is governed by a
print process. A job’s location name consists of a group name and a destination name.
The format of a location name is:
.
$ group-nameS
#
.
location-name
ns ns ns ns
ns ns
VST618.vsd