Spooling is a system function that saves data for later processing or printing. This data is stored in a spooled file. Spooled files work in a similar manner to tape files or other device files. Spooled files allow you to manage your data targeted for externally attached devices such as a printer.
A spooled file holds output data until it can be printed. The spooled file collects data from a device until a program or device is able to process the data. A program uses a spooled file as if it were reading from or writing to an actual device.
Spooling functions help server users to manage input and output operations more efficiently. The server supports two types of spooling, output spooling and input spooling. Output spooling can be used for printer devices. Input spooling applies to database file input.
At the end of a the job, the job log can be written to the spooled file QPJOBLOG so that it can be printed. After the job log is written to the spooled file, the job log is deleted.
For information about using spooled files with printer output, see Spooled files in the Basic Printing topic.