Command reference / sys
WRKPRB
Work with Problem
The Work with Problems (WRKPRB) command shows problem log entries for problems that were detected by the system or detected by the user. Problems can be deleted from the log by using the Delete Problem (DLTPRB) command. Restriction: This command is shipped with public *EXCLUDE authority and the QPGMR, QSYSOPR, QSRV, and QSRVBAS user profiles have private authorities to use the command.
Allowed environments: *INTERACT, *IPGM, *IREXX, *EXEC.
Positional parameters: 1.
Parameters
PRBID
Problem identifier
Specifies the problem identifier of the problem being selected. Problems with different system origins can have the same identifier. This parameter can be used with the ORIGIN parameter to select a single problem from a particular system origin.
Suggested / special values:
*ALL
*ALL- All problem identifiers are selected.
problem-identifier- Specify the 10-character problem identifier of the problem being selected.
STATUS
Status type
Specifies the status of problem log entries. There are seven types of status:
Allowed values:
*OPENED, *READY, *PREPARED, *SENT, *ANSWERED, *VERIFIED, *CLOSED, *ALL
*OPENED- The problem is in Opened status. The problem has been identified and a problem record was created.
*READY- The problem is in Ready status. Problem analysis information has been added to the problem record.
*PREPARED- The problem is in Prepared status. The problem has been prepared for reporting.
*SENT- The problem is in Sent status. The problem has been sent to a service provider, but no answer has been returned.
*ANSWERED- The problem is in Answered status. An answer has been returned by the service provider or added by an operator on this system.
*VERIFIED- The problem is in Verified status. The problem was resolved and the system operator has verified that the problem is corrected.
*CLOSED- The problem was closed.
*ALL- All types of status of problem log entries are shown.
status-type- Specify the type of status to be shown.
SEV
Severity
Specifies the severity level of the problem. Severity levels are assigned by the user when the problem is prepared for reporting. The four severity levels are:
Suggested / special values:
*ALL
1- High
2- Medium
3- Low
4- None
*ALL- All problem log entries are shown.
severity- Specify the level of severity of problem log entries to be shown.
Examples
WRKPRB STATUS(*OPENED *READY) HDW(9347)
Displaying Entries with Status of OPENED or READY. This command displays the Work with Problems panel, showing only those problem entries with a status of OPENED or READY which identify a failing device with type 9347.
WRKPRB PERIOD((*AVAIL *CURRENT))
Displaying Current Day Problem Entries. This command displays the Work with Problems panel, showing all problem entries that are created in the log on the current day.
WRKPRB SEV(1 2) HARDWARE(9347 001 '10-7523489')
Displaying List of Hardware Problems. This command shows a list containing problems with the hardware specified by the user. The user has specified that the command track medium to high levels of severity.
WRKPRB STATUS(*OPENED) PERIOD((*AVAIL *CURRENT) (120000 *CURRENT)) LICPGM(5722SS1 03 00) PGM(QNOPGM)
Displaying Problems That Have Been Opened. This command shows a list containing problems that have been opened during the period starting at midnight and ending at noon on the current day, and have not yet been analyzed. This command also identifies the specified licensed program identifier and program name as the probable cause of the failure.
WRKPRB RESOURCE(TAP01) MSGID(CPF6788)
Displaying a List of Machine-Detected Problems. This command shows a list containing machine detected problems that were opened due to the message, CPF6788, having been sent to the system operator message queue and for which a problem analysis was done. The problem analysis was done to determine the resource name of the device suspected of failure, which in this case is device, TAP01. The list of problems includes user-detected problems. To get the user-detected problems, the user specified the resource name and message identifier by using the Analyze Problem (ANZPRB) command.
WRKPRB SRVID(12345)
Displaying a List of Reported Problems. This command shows a list containing problems that have been reported to an IBM service identifier.
Generated from os/cl/catalog/WRKPRB.json and os/cl/help/WRKPRB.json.