Troubleshooting
Problem
This document provides information on the print hierarchy used to determine which output queue or printer will be used when generating a new spooled file.
Resolving The Problem
This document provides information on the print hierarchy used to determine which output queue or printer will be used when generating a new spooled file. For a detailed explanation of the hierarchy that is used to determine where a spooled file goes, refer to the OS/400 Printer Device Programming manual (SC41-5713-01). For a list of other things to check, refer to the section entitled "Spooled File Did Not Go Where Expected" below.
This document was last updated on 12 October 2004.
The following diagram of the hierarchy was copied from page 1-13 in that manual:
Note: These steps are for the native operating system environment however are not for the IBM System/36 Environment.

To help determine the parameters for that hierarchy, fill in the chart below using the steps following it to get the information (default parameters are included in the examples):
*OUTQ | *Device | |
Printer File: | ||
Job Description: | ||
User Profile: | ||
Workstation Description: | ||
QPRTDEV System Value: | XXXXXXXXXXXXXXXXXXX |
Printer File
1. | WRKSPLF or WRKOUTQ outq_name On the spooled file, select Option 8 for attributes, and page down. Device file . . . . . . . . . . . . . : QSYSPRT Library . . . . . . . . . . . . . . : QSYS Note: If doing a print screen from a dumb terminal, do WRKDEVD device_name (using the device name of the dumb terminal). Option 5 Printer file . . . . . . . . . . . : QSYSPRT Library . . . . . . . . . . . . : *LIBL |
2. | DSPFD printer_file_name Page down. Printer Attributes Device . . . . . . . . . . . . . . . . . . : DEV *JOB Page down three more times. Spooling Description Spooled output queue . . . . . . . . . . . : OUTQ *JOB |
Job Description
1. | Find the job description used: a Interactive: WRKUSRJOB username Option 5 on Active Job (Note: Write down the device name from the JOB column.) Option 2 Job description . . . . . . . . . . . . . . . . . : QDFTJOBD Library . . . . . . . . . . . . . . . . . . . . : QGPL Note: F12 from this screen, then take option 15 to display file overrides to see if there is an override in place. b Batch: In most cases, it will use the job description from the user job (step a). If not, WRKACTJOB, Option 5 on the batch job. Option 2 Job description . . . . . . . . . . . . . . . . . : QDFTJOBD Library . . . . . . . . . . . . . . . . . . . . : QGPL |
2. | WRKJOBD jobd_name Note: DSPJOBD displays it; however, this command will show all of the job descriptions by that name so the job description and library can be verified. Option 5 Printer device . . . . . . . . . . . . . . . . . : *USRPRF Output queue . . . . . . . . . . . . . . . . . . : *USRPRF Library . . . . . . . . . . . . . . . . . . . : |
User Profile
1. | DSPUSRPRF userprofile Page down two times. Output queue . . . . . . . . . . . . . . . : *WRKSTN Library . . . . . . . . . . . . . . . . : Printer device . . . . . . . . . . . . . . : *WRKSTN |
Workstation
1. | DSPDEVD device_name (from Step 2a, example QPADEVxxxx) Note: Batch jobs do not use this parameter. Print device . . . . . . . . . . . : *SYSVAL Output queue . . . . . . . . . . . : *DEV Note: If using the console and changing the device description does not work, try signing off and back on. |
System Value
1. | WRKSYSVAL QPRTDEV Option 5 Printer device . . . . : PRT01 Note: Changing this does not need an IPL, but users must sign off and back on to take effect. |
Spooled File Did Not Go Where Expected
1. | Something could be overriding the printer file by using the Override with Printer File (OVRPRTF) command. This can be done by an application, a CL program, or an initial program, which can be specified in someone's user profile. The user could even be typing in an OVRPRTF command themselves. For file overrides, see Job Description, 1a (above) or run the WRKJOB command, and select Option 15. To see overrides at the same level that the command is issued at, do a DSPOVR. |
2. | Something could be changing the Print device (PRTDEV) or Output queue (OUTQ) parameters for the job by using the Change Job (CHGJOB) command. This can be done by an application, a CL program or an initial program, which can be specified in someone's user profile. The user could even be typing in a CHGJOB command themselves. Option 2 (Display job definition attributes) from the Work with Job (WRKJOB) command will show the current settings for the Print device (PRTDEV) and Output queue (OUTQ) parameters. |
3. | The output queue could be set up to use a data queue that could be calling a program to move the spooled file to another output queue. Use the Work with Output Queue Description (WRKOUTQD) or Change Output Queue (CHGOUTQ) command to see if the Data Queue (DTAQ) parameter is set to something other than *NONE. |
4. | If the operating system cannot find the printer or output queue, it will generally send the spooled file to the QPRINT output queue instead. |
5. | The system-supplied printer file may back-level. To determine if the printer file is back-level, first use the Display Program Temporary Fix (DSPPTF) command without any parameters to determine the Release of base option. Next use the Display Object Description (DSPOBJD) command to check the System level of the printer file used to generate the spooled file. For example, use the following DSPOBJ command to check the System level of the QPRINT printer file in library QGPL: DSPOBJD OBJ(QGPL/QPRINT) OBJTYPE(*FILE) DETAIL(*SERVICE) The System level of the printer file shown by the DSPOBJD command must match the Release of base option level shown by the DSPPTF command. If is does not match, check to see if another printer file exists in another library at the correct system level. If not, the printer file must be restored from the operating system installation media or deleted and manually re-created. |
Historical Number
15413930
Was this topic helpful?
Document Information
Modified date:
18 December 2019
UID
nas8N1018110