Example 12: Determine your printer name when using batch

Assume:

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).