Printers attached to the iSeries™ server are supported by the operating system through printer files. Printer files describe how the system is to operate on the data as it passes between your application program and a printer.
A printer file handles every request for printing. There is one exception to this. It applies only to the Print key when the display station has an attached remote workstation controller. In this situation, the printer that is named in the device description for that display station receives the printed version of the screen. The remote workstation controller, not the iSeries server, handles this.
Printer files contain many parameters that tell the system how the output should be formatted, what font to use for the printed output, whether to print on both sides of the page, and more. For example, the parameters that control how your output is handled and where it goes are:
When the SPOOL parameter is set to *YES, the output from an application program (a spooled file) is sent to an output queue (OUTQ). When SPOOL = *YES, the system looks at the OUTQ parameter in the printer file to find out which output queue (OUTQ) to send the spooled file to. For example, the OUTQ value in your printer file could be OUTQ1. However, in the default printer file, QSYSPRT, the value specified is *JOB. This means that the QSYSPRT printer file tells the system to look at your job's OUTQ attribute to determine the name of the output queue (OUTQ).
When the SPOOL parameter is set to *NO, the output from an application program is sent directly to a printer. When SPOOL = *NO, the system looks at the DEV parameter in the printer file to find out which printer to send the output to. For example, the DEV value in your printer file could be PRT01. However, in the default printer file, QSYSPRT, the value specified is *JOB. This means that the QSYSPRT printer file tells the system to look at your PRTDEV job's attribute to determine the name of the printer device (DEV).
There are two different types of printer files:
You can create your own printer files by using the Create Printer File (CRTPRTF), or you can use system-provided printer files. See Printer file parameter considerations for more detailed information on certain printer file parameters.
The following list contains the IBM-supplied printer files:
If another printer file is not specified, the printer uses the default printer file. The default printer file for the system is QSYSPRT.