Example 11: Determine your printer name when using batch

Assume:

When the job runs in batch, the resulting spooled file is sent to the output queue named PRT99 and the spooled file prints on PRT99. The *WRKSTN value for output queue is interpreted as *DEV and an output queue having the same name as the printer device is selected.

If no spooling was used when printing, the output would go to printer device PRT99.