The REXEC server can be traced by creating a data area. Note that running the REXEC server with trace running may cause a significant performance impact.
CRTDTAARA DTAARA(QUSRSYS/QTMXRXCDBG) TYPE(*LGL) LEN(1)
DLTDTAARA DTAARA(QUSRSYS/QTMXRXCDBG)
DSPSYSVAL QPRTDEV
For example, the following display appears:
Display System Value
System value . . . . . : QPRTDEV
Description . . . . . : Printer device description
Printer device . . . . : PRT01 Name
The printer device is also the name of the default system output queue.
WRKOUTQ OUTQ(printer-device)
Replace printer-device with the printer device recorded in the previous display. PRT01 is the output queue in this example. For example, the following display appears:
Work with Output Queue Queue: PRT01 Library: QGPL Status: RLS Type options, press Enter. 1=Send 2=Change 3=Hold 4=Delete 5=Display 6=Release 7=Messages 8=Attributes 9=Work with printing status Opt File User User Data Sts Pages Copies Form Type Pty _ QTCPPRT QTCP QTMSMTP HLD 46 1 *STD 5 _ QPSRVTRC QSECOFR HLD 44 1 *STD 5