In the printer file, assume that:
Because the SPOOL value is *YES, the output must go to an output queue.
Also assume that there has not been a switch to an alternate user profile.
At job initiation, the following takes place:
The system looks at the OUTQ parameter in the job description; that value is *USRPRF. This tells the system to look at the OUTQ parameter in the user profile. In this example, that value is *WRKSTN. This tells the system to look at the OUTQ parameter in the workstation description. In the workstation description, the OUTQ parameter value is *DEV. *DEV is stored in the job attribute OUTQ.The system looks a the PRTDEV parameter in the job description; that value is *USRPRF. This tells the system to look at the PRTDEV parameter in the user profile. In this example, that value is *WRKSTN. This tells the system to look at the PRTDEV parameter in the workstation description. This tells the system to look at the system value Default printer (QPRTDEV) and to use the output queue on the system that has the same name as the system printer named in the system value Default printer (QPRTDEV). In this example, that is PRT01. PRT01 is stored in the job attribute PRTDEV.
At job run time, the following takes place:
When a spooled file is to be created, the system looks at the OUTQ parameter in the printer file for the output queue name. In this example, that value is *JOB. This tells the system to look at the OUTQ attribute for the job. The OUTQ job attribute was set to *DEV during the job initiation stage. The OUTQ job attribute, *DEV, tells the system to look at the DEV parameter in the printer file. The value in the DEV parameter of the printer file is *JOB. That value tells the system to look at the PRTDEV attribute of the job. If the IBM-supplied value for QPRTDEV has not been changed, the printer device name is PRT01 and the output queue name is PRT01.