Example 10: Determine your printer name when using batch

Assume:

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.