COBOL Manual for TNS/E Programs (H06.08+, J06.03+)
If you do not specify a location, the spooler uses the location #DEFAULT. Each installation determines
for itself the identity of the device or devices that compose the default group.
State
A job is always in one of four states:
MeaningState
A process is writing to the collector.OPEN
The originating process has closed its file and the job is ready to be printed, but the device on
which it is to print is not currently available or its location is not associated with a device.
READY
The job is being printed on the device associated with the job’s location.PRINT
The job is awaiting disposition.HOLD
If the job is in PRINT state, the spooler stops printing the job as soon as you request that the job
be put into the HOLD state.
You can put a job into the HOLD state with PERUSE or SPOOLCOM. PERUSE has a HOLD command;
SPOOLCOM has a JOB command with a HOLD subcommand.
By default, the spooler deletes a job as soon as it has printed it. If you want the spooler to put the
job into the HOLD state after printing it instead, use the PERUSE command HOLDAFTER or the
SPOOLCOM command JOB with the subcommand HOLDAFTER. You can issue the HOLDAFTER
command for a job in any state.
A job in the HOLD state remains in the spooler until you or a system operator changes the job’s
state or deletes the job. Remember that the number of jobs the spooler can hold is limited, as is
the amount of disk space available for the text of those jobs.
Number of Copies
The default number of copies is 1. If you want several copies of your report, specify a number of
copies (a number in the range from 1 through 32,767). When the spooler finds an available
device for the job, it prints that many copies before freeing the device for another job.
Your installation might have rules limiting how many copies you may run or how many pages you
may print with a single job; check with your operations staff.
Priority
A job’s priority determines when the job is printed in relation to other jobs queued for the same
device. The default priority is 4. The system operator can configure each device known to the
spooler to print jobs of the same priority in a first-come, first-served order or in
shorter-jobs-before-longer-jobs order.
Report Name
The spooler passes the report name to the print process. If your installation uses the print process
supplied by HP, the system operator can configure it to either leave a blank page between jobs
or print a header page. The header page displays the report name in banner-head letters on the
first page of the job, along with the location name. In ordinary type at the bottom of the first page,
the print process reports the date and time, the job number, and the form name of the job.
A report name can have up to 16 characters. No character can be a hyphen. The default report
name is your group name and user name. You can use PERUSE or SPOOLCOM to change the
report name.
If you are using a different print process, that print process can do anything with the report name.
902 Printer and Spooler Output










