CL Command Reference - ADDPRBSLTE
CL Command List > ADDPRBSLTE Reference
Description:
The Add Problem Selection Entry (ADDPRBSLTE) command allows you to define selection criteria that categorize a group of problem log entries. You can add a problem log selection entry to a problem log filter that was created using the Create Filter (CRTFTR) command.
Examples:
Example 1: Adding a Selection Entry
ADDPRBSLTE FILTER(PROBLIB/PROBFILTER)
SELECT((*IF *EVENT *EQ 1) (*AND *SEV *EQ 1))
SEQNBR(*GEN) GROUP(HIGHPROB)
This command adds an entry to the filter PROBFILTER in library PROBLIB. Any problems that have been created and are of severity 1 are assigned to group HIGHPROB.
Example 2: Assigning Entries by Origin System Network ID
ADDPRBSLTE FILTER(PROBLIB/PROBFILTER)
SELECT((*IF *ORGNETID *EQ ¡¯IOWA¡¯)) SEQNBR(*GEN)
GROUP(IOWA)
This command assigns any problems with a origin system network ID of IOWA to group IOWA.
Example 3: Assigning Entries by Problems for Messages
ADDPRBSLTE FILTER(PROBLIB/PROBFILTER)
SELECT((*IF *MSGID *EQ ¡¯CPF89*¡¯)) SEQNBR(*GEN)
GROUP(MSGCPF89)
This command assigns any problems for message CPF8901, CPF8902, and so on, to group MSGCPF89.
Example 4: Assigning Entries by Hardware Problems
ADDPRBSLTE FILTER(PROBLIB/PROBFILTER)
SELECT((*IF *RSCHDW *CT 9404)
(*OR *RSCHDW *CT 9406)
(*OR *RSCHDW *CT 9402))
SEQNBR(*GEN) GROUP(AS400USER)
All problems for iSeries hardware (the hardware resource information containing machine type 9402, 9404 or 9406) are assigned to group AS400USER.
Caution must be taken when using the contains operation. In this example if the sending machine had a serial number containing 9402, 9404, or 9406 it would also match this selection entry even if the machine type was not 9402, 9404, or 9406. A better example follows.
Example 5: Assigning Entries by Hardware Problems
ADDPRBSLTE FILTER(PROBLIB/PROBFILTER)
SELECT((*IF *RSCHDW *EQ 9404*)
(*OR *RSCHDW *EQ 9406*)
(*OR *RSCHDW *EQ 9402*))
SEQNBR(*GEN) GROUP(AS400USER)
This command assigns all problems for iSeries 400 hardware (the hardware resource information equals machine type 9402, 9404 or 9406) to group AS400USER.
This is a better way to select on the sending hardware machine type. Only those machines with types of 9402, 9404, or 9406 will result in a match.
Example 6: Assigning Entries by Machine-detected Problems
ADDPRBSLTE FILTER(PROBLIB/PROBFILTER)
SELECT((*IF *PROBTYPE *EQ 1))
SEQNBR(*GEN) GROUP(MACHDETECT)
This command assigns any problems that are machine-detected to group MACHDETECT.
Example 7: Assigning Entries by Product-specific Problems
ADDPRBSLTE FILTER(PROBLIB/PROBFILTER)
SELECT((*IF *RSCSFW *EQ ¡¯5716SS1 03 06 00¡¯))
SEQNBR(15) GROUP(OS400V3R6)
This command assigns any problems that are specifically for Operating System Version 3 Release 6 Modification 0 to group OS400V3R6. Notice that this entry is placed after entry number 10 in the filter, since 15 is specified as the sequence number.