Tracing the REXEC server

 

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. To trace the REXEC server, follow these steps:

  1. Create the data area using the following command:
     
    
    CRTDTAARA DTAARA(QUSRSYS/QTMXRXCDBG) TYPE(*LGL) LEN(1)

  2. Perform the REXEC operation that you want to trace.

  3. Delete the data area using the following command:
    DLTDTAARA DTAARA(QUSRSYS/QTMXRXCDBG)

  4. Enter the following command to find the output queue:
    DSPSYSVAL QPRTDEV

    For example, the following display appears:

    Figure 1. Display System Value Display
                                   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.

  5. Record the name of the printer device. In this example, PRT01 is the printer device.

  6. Press F12 (Cancel) to return to the display where you entered the DSPSYSVAL command.

  7. Type the following command:
    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:

    Figure 2. Work with Output Queue Display
                                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

  8. Press F18 (Bottom) to get to the bottom of the spooled file list if More... appears on the display.

  9. Find the last file named QPSRVTRC with the same user as the user who was logged on the REXEC server when the trace was created.

  10. Press F11 (View 2) to view the date and time of the file you want to work with.

  11. Verify that you are working with the most recent spooled file, QPSRVTRC.

  12. Indicate in the problem report that the trace was tried and it failed. Send whatever trace information there is with the problem report.

 

Parent topic:

Determining problems with REXEC