RREP: Retrieve WTOR IDs
The RREP EXEC can be used to retrieve the number and text of 10 outstanding WTORs.
If the EXEC receives more then ten WTORs, it ends with a return code of 16, sets RREPROL1 to 0, issues an error message (REP101E) and deletes all data variables from the local pool. If you need to process or examine more then 10 WTORS, use the RREPRX EXEC (see RREPRX-Retrieve-WTOR-IDs).
The following statement shows the format of the call from the EXEC:
Table 1 lists the RREP parameters.
Table 1. RREP parameters
Parameter | Required? | Description |
---|---|---|
SYSTEM | Yes | System ID for which to gather data. The value ALL means the same as no specification. All replies from a sysplex will be returned. |
Following is a list of return codes from RREP:
Return code | Description |
---|---|
8 | Security failure |
16 | Received more than 10 WTORs |
Table 2 lists the variables returned by RREP in the LOCAL POOL.
Table 2. Variables returned by RREP in the LOCAL POOL
Variable name | Type | Description |
---|---|---|
RREPI(XXX) | Data | Reply number |
RREPN(XXX) | Data | JES number of task that issued WTOR |
RREPROL1 | Control | Number of output lines |
RREPT(XXX) | Data | type of task that issued WTOR (STC TSU JOB) |
RREP1(XXX) through RREP9(XXX) | Data | First nine words of message |
RREP10(XXX) through RREP12(XXX) | Data | Extended to twelfth word of the message |