If a job that has produced spooled files is running when the job or system stops abnormally, the files remain on the output queue. Some number of records written by active programs might still be in main storage when the job ends and will be lost. You should check these spooled files to ensure that they are complete before you decide to continue using the files.
You can specify if all spooled files (except QPJOBLOG) created by the job are to be kept for normal processing by the printer writer, or if these files are to be deleted.
If an abnormal end occurs, the spooled file QPJOBLOG will be written at the next IPL of the system.
If a printer writer fails while a spooled file is being printed, the spooled file remains on the output queue intact.
Recovery of user-created output queues
If an output queue becomes damaged in such a way that it cannot be used, you are notified by a message sent to the system operator message queue. The message comes from a system function when a printer writer or a job tries to add or remove spooled files from the damaged queue.
You can manually delete a damaged output queue or it will be deleted by the system during the next IPL.
After a damaged output queue is deleted, all spooled files on the damaged output queue are moved to output queue QSPRCLOUTQ in library QRCL. The move is performed by the QSPLMAINT system job, which issues a completion message to the QSYSOPR message queue when all spooled files have been moved.
If the output queue resides in an independent ASP, then the spooled files are moved to output queue QSPRCLOUTQ in library QRCLxxxxx, where xxxxx is the independent ASP number of the primary independent ASP of the independent ASP group (for example, QRCL00033 if the primary independent ASP number is 33). The move is performed by the QSPMNxxxxx job, where xxxxx is the independent ASP number of the primary independent ASP. A message is sent to the QSYSOPR message queue when all spooled files have been moved.
After the damaged output queue is deleted, it can be created again. Then, spooled files on output queue QSPRCLOUTQ can be moved to the newly created output queue.
Recovery of system-created output queues
If the output queue that was damaged was the default output queue associated with a printer, the system automatically re-creates the output queue when it is deleted.
This system-created output queue has the same public authority as specified for the device and default values for the other parameters. After the system re-creates the output queue, you should verify its attributes are correct or change them, if necessary.
When a damaged output queue associated with a printer is deleted and created again, all spooled files on the damaged queue are moved to the re-created output queue. This is done by the QSPLMAINT system job, which issues a completion message to the QSYSOPR message queue when all spooled files have been moved.