This example shows how the logging level affects the information that is stored in the job message queue and, therefore, written to the job log, if one is requested.
Command Entry SYSTEM1 Request level: 1 Previous commands and messages: > CHGJOB LOG(2 50 *MSG)
PGMB sends two informational messages with severity codes of 40 and 50 to its own call message queue. These are detailed messages. PGMB also sends one informational message with a severity code of 10 to *PRV, which is a high-level message.
Note in the following display, after PGMA and PGMB are called, that the CHGJOB command no longer appears on the display. According to logging level 2, only requests for which a high-level message has been issued with a severity equal to or greater than that specified are saved for the job log, and no messages were issued for this request. CHGJOB was removed, or filtered from the job log, when the next request CALL PGMA was received. When a new request is received, the previous request is filtered according to the log level. If such a high-level message had been issued, any detailed messages that had been issued would be saved for the job log and could be displayed by pressing F10.
Command Entry SYSTEM1 Request level: 1 Previous commands and messages: > CALL PGMA Message sev 20 - PGMA Message sev 50 - PGMA Message sev 60 - PGMA > CALL PGMB Message sev 10 - PGMB Bottom Type command, press Enter. ===> _________________________________________________________________________ ______________________________________________________________________________ ______________________________________________________________________________ _____________________________________________________________________________ F3=Exit F4=Prompt F9=Retrieve F10=Include detailed messages F11=Display full F12=Cancel F13=Information Assistant F24=More keys
Request CALL PGMA results in a high-level message equal to or greater than the current log severity, so when request CALL PGMB is entered, no messages from PGMA are filtered.
Command Entry SYSTEM1 Request level: 1 All previous commands and messages: > CALL PGMA Detailed message sev 20 - PGMA Detailed message sev 50 - PGMA Detailed message sev 60 - PGMA Message sev 20 - PGMA Message sev 50 - PGMA Message sev 60 - PGMA > CALL PGMB Detailed message sev 40 - PGMB Detailed message sev 50 - PGMB Message sev 10 - PGMB Bottom Type command, press Enter. ===> _________________________________________________________________________ ______________________________________________________________________________ ______________________________________________________________________________ _____________________________________________________________________________ F3=Exit F4=Prompt F9=Retrieve F10=Exclude detailed messages F11=Display full F12=Cancel F13=Information Assistant F24=More Keys
On the following display, the CHGJOB command specifies a logging level of 3, a message severity of 40, and that both the first- and second-level text of a message are to be written to the job log. When another command is entered, the CHGJOB command remains on the display because logging level 3 logs all requests.
PGMC sends two messages with severity codes of 30 and 40 to the call message queue of its caller (*PRV).
PGMD sends a message with a severity of 10 to *PRV.
Command Entry SYSTEM1 Request level: 1 Previous commands and messages: > CALL PGMA Message sev 20 - PGMA Message sev 50 - PGMA Message sev 60 - PGMA > CHGJOB LOG(3 40 *SECLVL) > CALL PGMC Message sev 30 - PGMC Message sev 40 - PGMC > CALL PGMD Message sev 10 - PGMD Bottom Type command, press Enter. ===> _________________________________________________________________________ ______________________________________________________________________________ ______________________________________________________________________________ _____________________________________________________________________________ F3=Exit F4=Prompt F9=Retrieve F10=Include detailed messages F11=Display full F12=Cancel F13=Information Assistant F24=More Keys
The command SIGNOFF *LIST is entered to end the job and print the job log.
Command Entry SYSTEM1 Request level: 1 Previous commands and messages: > CHGJOB LOG(3 40 *SECLVL) > CALL PGMC Message sev 30 - PGMC Message sev 40 - PGMC > CALL PGMD > CALL PGME Bottom Type command, press Enter. ===> SIGNOFF *LIST____________________________________________________________ ______________________________________________________________________________ ______________________________________________________________________________ _____________________________________________________________________________ F3=Exit F4=Prompt F9=Retrieve F10=Include detailed messages F11=Display full F12=Cancel F13=Information assistant F24=More Keys
The job log, which follows, contains all the requests and all the messages that have remained on the Command Entry display. In addition, the job log contains the message help associated with each message, as specified by the last CHGJOB command. Notice that the job log contains the message help of any message issued during the job, not just for the messages issued since the second CHGJOB command was entered.
5722SS1 V5R3M0 040528 Job Log SYSAS727 01/16/05 07:13:35 Page 1 Job name . . . . . . . . . . : QPADEV000C User . . . . . . : JOHNDOE Number . . . . . . . . . . . : 038518 Job description . . . . . . : QDFTJOBD Library . . . . . : QGPL MSGID TYPE SEV DATE TIME FROM PGM LIBRARY INST TO PGM LIBRARY INST CPF1124 Information 00 01/16/05 07:13:19.570504 QWTPIIPP QSYS 0613 *EXT *N Message . . . . : Job 038518/JOHNDOE/QPADEV000C started on 01/16/05 at 07:13:19 in subsystem QINTER in QSYS. Job entered system on 01/16/05 at 07:13:19. *NONE Request 01/16/05 07:13:24.318144 QMHGSD QSYS 0010 QCMD QSYS 0178 Message . . . . : -CALL PGMA MSG1001 Information 20 01/16/05 07:13:24.361064 PGMA JOHNDOE 0029 PGMA JOHNDOE 0029 From User . . . . . . . . . : MARYJANE Message . . . . : Detailed message sev 20 - PGMA MSG1001 second level text - PGMA MSG1002 Information 50 01/16/05 07:13:24.361416 PGMA JOHNDOE 0032 PGMA JOHNDOE 0032 Message . . . . : Detailed message sev 50 - PGMA MSG1002 second level text - PGMA MSG1003 Information 60 01/16/05 07:13:24.361592 PGMA JOHNDOE 0036 PGMA JOHNDOE 0036 Message . . . . : Detailed message sev 60 - PGMA MSG1003 second level text - PGMA MSG1004 Information 20 01/16/05 07:13:24.361776 PGMA JOHNDOE 003A QCMD QSYS 01A6 Message . . . . : Message sev 20 - PGMA MSG1004 second level text - PGMA MSG1005 Information 50 01/16/05 07:13:24.362192 PGMA JOHNDOE 0043 QCMD QSYS 01A6 From User . . . . . . . . . : MARYJANE Message . . . . : Message sev 50 - PGMA MSG1005 second level text - PGMA MSG1006 Information 60 01/16/05 07:13:24.362552 PGMA JOHNDOE 004C QCMD QSYS 01A6 Message . . . . : Message sev 60 - PGMA MSG1006 second level text - PGMA *NONE Request 01/16/05 07:13:24.370240 QMHGSD QSYS 0018 QCMD QSYS 0178 Message . . . . : -CHGJOB LOG(3 40 *SECLVL) *NONE Request 01/16/05 07:13:24.370672 QMHGSD QSYS 001C QCMD QSYS 0178 Message . . . . : -CALL PGMC MSG100F Information 30 01/16/05 07:13:24.379256 PGMC JOHNDOE *STMT QCMD QSYS 01A6 From User . . . . . . . . . : MARYJANE From module . . . . . . . . : PGMC From procedure . . . . . . : PGMC Statement . . . . . . . . . : 8000 Message . . . . : Message sev 30 - PGMC MSG100F second level text - PGMC MSG1010 Information 40 01/16/05 07:13:24.379608 PGMC JOHNDOE *STMT QCMD QSYS 01A6 From module . . . . . . . . : PGMC From procedure . . . . . . : PGMC Statement . . . . . . . . . : 8200 5722SS1 V5R3M0 040528 Job Log LPAR3TLM 01/16/05 07:13:35 Page 2 Job name . . . . . . . . . . : QPADEV000C User . . . . . . : JOHNDOE Number . . . . . . . . . . . : 038518 Job description . . . . . . : QDFTJOBD Library . . . . . : QGPL MSGID TYPE SEV DATE TIME FROM PGM LIBRARY INST TO PGM LIBRARY INST Message . . . . : Message sev 40 - PGMD MSG1010 second level text - PGMC *NONE Request 01/16/05 07:13:24.379928 QMHGSD QSYS 0020 QCMD QSYS 0178 Message . . . . : -CALL PGMD *NONE Request 01/16/05 07:13:24.383568 QMHGSD QSYS 0024 QCMD QSYS 0178 Message . . . . : -CALL PGME *NONE Request 01/16/05 07:13:35.166408 QMHGSD QSYS 073E QCMD QSYS 0178 Message . . . . : -signoff *list CPF1164 Completion 00 01/16/05 07:13:35.173496 QWTMCEOJ QSYS 00BD *EXT *N Message . . . . : Job 038518/JOHNDOE/QPADEV000C ended on 01/16/05 at 07:13:35; 1 seconds used; end code 0 . Cause . . . . . : Job 038518/JOHNDOE/QPADEV000C completed on 01/16/05 at 07:13:35 after it used 1 seconds processing unit time. The job had ending code 0. The job ended after 1 routing steps with a secondary ending code of 0. The job ending codes and their meanings are as follows: 0 - The job completed normally. 10 - The job completed normally during controlled ending or controlled subsystem ending. 20 - The job exceeded end severity (ENDSEV job attribute). 30 - The job ended abnormally. 40 - The job ended before becoming active. 50 - The job ended while the job was active. 60 - The subsystem ended abnormally while the job was active. 70 - The system ended abnormally while the job was active. 80 - The job ended (ENDJOBABN command). 90 - The job was forced to end after the time limit ended (ENDJOBABN command). Recovery . . . : For more information, see the Work Management topic in the Information Center, http://www.iseries.ibm.com/infocenter.
The headings at the top of each page of the printed job log identify the job to which the job log applies and the characteristics of each entry:
The following information is printed for each message entry in the job log: