Assume:
- There has not been a switch to an alternate user profile.
- The spooled file owner is *CURUSRPRF.
- 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 *CURRENT.
- The printer device parameter on the SBMJOB command is specified as *CURRENT.
When the job runs in batch, the resulting spooled file is sent to OUTQ1 and that spooled file prints on the printer assigned to OUTQ1.
If no spooling was used when printing, the output would go to printer device PRT1.
The reason OUTQ1 and PRT1 are used is that *CURRENT is the value passed to the batch job by the user.