You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
Spooling writers<br />
156 <strong>File</strong> <strong>Management</strong> V4R5<br />
by active programs may still be in main storage when the job ends and will be<br />
lost. You should check these spooled files to ensure that they are complete before<br />
you decide to continue using the files.<br />
You can use the SPLFILE parameter on the End Job (ENDJOB) command to specify<br />
if all spooled files (except QPJOBLOG) created by the job are to be kept for normal<br />
processing by the writer, or if these files are to be deleted.<br />
If an abnormal end occurs, the spooled file QPJOBLOG will be written at the next<br />
IPL of the system.<br />
If a writer fails while a spooled file is being printed, the spooled file remains on<br />
the output queue intact.<br />
If an output queue becomes damaged such that it cannot be used, you will be<br />
notified by a message sent to the system operator message queue. The message<br />
will come from a system function when a writer or a job tries to put or take<br />
spooled files from the damaged queue.<br />
A damaged output queue can be deleted using the Delete Output Queue<br />
(DLTOUTQ) command, or it will be deleted by the system during the next IPL.<br />
After a damaged output queue is deleted, all spooled files on the damaged output<br />
queue are moved to output queue QSPRCLOUTQ in library QRCL. This is done by<br />
the QSPLMAINT system job, which issues completion message CPC3308 to the<br />
QSYSOPR message queue when all spooled files have been moved to the<br />
QSPRCLOUTQ output queue.<br />
After the damaged output queue is deleted, it can be created again by entering the<br />
Create Output Queue (CRTOUTQ) command. Spooled files on output queue<br />
QSPRCLOUTQ can be moved back to the newly created output queue using the<br />
Change Spooled <strong>File</strong> Attributes (CHGSPLFA) command.<br />
Note: If the output queue that was damaged was the default output associated<br />
with a printer, the system will automatically re-create the output queue<br />
when it is deleted. This system-created output queue will have the same<br />
public authority as specified for the device and default values for the other<br />
parameters. After the system re-creates the output queue, you should verify<br />
its attributes are correct and change them as needed. The output queue can<br />
be changed using the Change Output Queue (CHGOUTQ) command. When<br />
a damaged output queue associated with a printer is deleted and created<br />
again, all spooled files on the damaged queue will be moved to the<br />
re-created output queue. This is done by the QSPLMAINT system job, which<br />
issues completion message CPC3308 to the QSYSOPR message queue when<br />
all spooled files have been moved.<br />
A writer is an OS/400 program that takes spooled files from an output queue and<br />
produces them on an output device. The spooled files that have been placed on a<br />
particular output queue will remain stored in the system until a writer is started to<br />
the output queue.<br />
The writer takes spooled files one at a time from the output queue, based on their<br />
priority. The writer processes a spooled file only if its entry on the output queue