Assume:
- There has not been a switch to an alternate user profile.
- The spooled file owner *CURUSRPRF value on the printer file has not been overridden.
- The user's output queue (OUTQ) is OUTQ1 and the printer device (PRTDEV) is PRT1.
- The Submit Job (SBMJOB) command is used to submit the job to batch.
- The output queue parameter on the SBMJOB command is specified as *USRPRF.
- The user profile has *WRKSTN as the value for the output queue parameter.
- The printer device parameter on the SBMJOB command is specified as *WRKSTN.
When the job runs in batch, the resulting spooled file is sent to the system printer. This is because the *WRKSTN value for output queue is interpreted as *DEV and the printer device value of *WRKSTN is interpreted as *SYSVAL.
If no spooling was used when printing, the output would go to the printer defined as the system printer. This is the printer name assigned to the system value Default printer (QPRTDEV).