ibm-information-center/dist/eclipse/plugins/i5OS.ic.rbam6_5.4.0.1/jlcontrolinfoex.htm

339 lines
22 KiB
HTML

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="en-us" xml:lang="en-us">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="security" content="public" />
<meta name="Robots" content="index,follow" />
<meta http-equiv="PICS-Label" content='(PICS-1.1 "http://www.icra.org/ratingsv02.html" l gen true r (cz 1 lz 1 nz 1 oz 1 vz 1) "http://www.rsac.org/ratingsv01.html" l gen true r (n 0 s 0 v 0 l 0) "http://www.classify.org/safesurf/" l gen true r (SS~~000 1))' />
<meta name="DC.Type" content="concept" />
<meta name="DC.Title" content="Example: Control information written in a job log" />
<meta name="abstract" content="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." />
<meta name="description" content="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." />
<meta name="DC.subject" content="message logging levels, high-level, detailed, example, logging message in job log, Command Entry display, detailed message, description" />
<meta name="keywords" content="message logging levels, high-level, detailed, example, logging message in job log, Command Entry display, detailed message, description" />
<meta name="DC.Relation" scheme="URI" content="jblog.htm" />
<meta name="DC.Relation" scheme="URI" content="sndrcv.htm" />
<meta name="copyright" content="(C) Copyright IBM Corporation 1998, 2006" />
<meta name="DC.Rights.Owner" content="(C) Copyright IBM Corporation 1998, 2006" />
<meta name="DC.Format" content="XHTML" />
<meta name="DC.Identifier" content="jlconex" />
<meta name="DC.Language" content="en-us" />
<!-- All rights reserved. Licensed Materials Property of IBM -->
<!-- US Government Users Restricted Rights -->
<!-- Use, duplication or disclosure restricted by -->
<!-- GSA ADP Schedule Contract with IBM Corp. -->
<link rel="stylesheet" type="text/css" href="./ibmdita.css" />
<link rel="stylesheet" type="text/css" href="./ic.css" />
<title>Example: Control information written in a job log</title>
</head>
<body id="jlconex"><a name="jlconex"><!-- --></a>
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<h1 class="topictitle1">Example: Control information written in a job log</h1>
<div><p>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. </p>
<div class="p">The example also shows that when the command is run interactively, filtering
occurs after each command is run when the next request is received. <div class="note"><span class="notetitle">Note:</span> Both
high-level and detailed message logging levels are included in the examples.
High-level messages start with the text of <em>Message</em>; detailed messages
start with the text of <em>Detailed Message</em>.</div>
</div>
<ol><li>The CHGJOB command specifies a logging level of 2 and a message severity
of 50, and that only messages are to be written to the job log (*MSG). <pre class="screen"> Command Entry SYSTEM1
Request level: 1
Previous commands and messages:
&gt; CHGJOB LOG(2 50 *MSG)
</pre>
</li>
<li>PGMA sends three informational messages with severity codes of 20, 50,
and 60 to its own call message queue and to the caller or the previous call
message queue, for example, *PRV, which would be QCMD in this example using
the command entry display. The messages that PGMA sends to its own call message
queue are called detailed messages. <strong>Detailed messages</strong> are those messages
that are sent to the call message queue of the lower-level program call. <p>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.</p>
<p>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.</p>
<pre class="screen"> Command Entry SYSTEM1
Request level: 1
Previous commands and messages:
&gt; CALL PGMA
Message sev 20 - PGMA
Message sev 50 - PGMA
Message sev 60 - PGMA
&gt; CALL PGMB
Message sev 10 - PGMB
Bottom
Type command, press Enter.
===&gt; _________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
_____________________________________________________________________________
F3=Exit F4=Prompt F9=Retrieve F10=Include detailed messages
F11=Display full F12=Cancel F13=Information Assistant F24=More keys
</pre>
<p>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.</p>
</li>
<li>When F10=Include detailed messages is pressed from the Command Entry display,
all the messages associated with the request CALL PGMA are displayed. All
messages for request CALL PGMB are also shown because no filtering for the
request has occurred yet.<pre class="screen"> Command Entry SYSTEM1
Request level: 1
All previous commands and messages:
&gt; 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
&gt; CALL PGMB
Detailed message sev 40 - PGMB
Detailed message sev 50 - PGMB
Message sev 10 - PGMB
Bottom
Type command, press Enter.
===&gt; _________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
_____________________________________________________________________________
F3=Exit F4=Prompt F9=Retrieve F10=Exclude detailed messages
F11=Display full F12=Cancel F13=Information Assistant F24=More Keys
</pre>
</li>
<li>When another command is entered (in this example, another CHGJOB), the <samp class="codeph">CALL
PGMB</samp> command and all messages (including detailed messages) are removed.
They are removed because the severity code for the <u>high-level</u> message
associated with this request was not equal to or greater than the severity
code specified in the CHGJOB command. The <samp class="codeph">CALL PGMA</samp> command
and its associated messages remain because at least one of the high-level
messages issued for that request has a severity code equal to or greater than
that specified. Press F10 again to exclude detailed messages.<p>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.</p>
<p>PGMC
sends two messages with severity codes of 30 and 40 to the call message queue
of its caller (*PRV).</p>
<p>PGMD sends a message with a severity of 10 to
*PRV. </p>
<pre class="screen"> Command Entry SYSTEM1
Request level: 1
Previous commands and messages:
&gt; CALL PGMA
Message sev 20 - PGMA
Message sev 50 - PGMA
Message sev 60 - PGMA
&gt; CHGJOB LOG(3 40 *SECLVL)
&gt; CALL PGMC
Message sev 30 - PGMC
Message sev 40 - PGMC
&gt; CALL PGMD
Message sev 10 - PGMD
Bottom
Type command, press Enter.
===&gt; _________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
_____________________________________________________________________________
F3=Exit F4=Prompt F9=Retrieve F10=Include detailed messages
F11=Display full F12=Cancel F13=Information Assistant F24=More Keys
</pre>
</li>
<li>When another command (CALL PGME) is entered after the <samp class="codeph">CALL PGMD</samp> command
was entered, the <samp class="codeph">CALL PGMD</samp> command remains on the display,
but its associated message is deleted. The message is deleted (filtered from
the job log) because its severity code is not equal to or greater than the
severity code specified on the LOG parameter of the CHGJOB command. <p>The
command <samp class="codeph">SIGNOFF *LIST</samp> is entered to end the job and print
the job log. </p>
<pre class="screen"> Command Entry SYSTEM1
Request level: 1
Previous commands and messages:
&gt; CHGJOB LOG(3 40 *SECLVL)
&gt; CALL PGMC
Message sev 30 - PGMC
Message sev 40 - PGMC
&gt; CALL PGMD
&gt; CALL PGME
Bottom
Type command, press Enter.
===&gt; SIGNOFF *LIST____________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
_____________________________________________________________________________
F3=Exit F4=Prompt F9=Retrieve F10=Include detailed messages
F11=Display full F12=Cancel F13=Information assistant F24=More Keys
</pre>
</li>
</ol>
<p>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.</p>
<div class="fignone"><pre> 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.
</pre>
</div>
<p>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:</p>
<ul><li>The product ID, version, and date of the operating system</li>
<li>The system name</li>
<li>The date and time the job log was printed.</li>
<li>The fully qualified name of the job (job name, user name, and job number).</li>
<li>The name of the job description used to start the job.</li>
<li>The section number. This is printed if the job log is printed in multiple
sections because the job log wrapped and *PRTWRAP was specified for the job
message queue full action.</li>
<li>Headings for the information in the first line of each message entry.</li>
</ul>
<p>The following information is printed for each message entry in the job
log: </p>
<ul><li>The first line for each message contains the following information: <ul><li>The message identifier or *NONE.</li>
<li>The message type.</li>
<li>The message severity. This is blank for request messages.</li>
<li>The date and time each message was sent.</li>
<li>The program name, library name, and instruction number of the program
that sent the message.</li>
<li>The program name, library name, and instruction number of the program
to which the message was sent. *EXT indicates that the message was sent to
the external message queue of the job.</li>
</ul>
</li>
<li>If the message was sent by a user other than the user identified as the
user in the qualified job name, the name of the user that sent the message
is printed on a separate line. This can indicate one of the following situations: <ul><li>The message was sent while the job was running under a different user
profile. In the sample job log shown above, messages MSG1001, MSG1005, and
MSG100F were sent while the job was running under a different user profile.</li>
<li>An inquiry message was replied to by another user.</li>
<li>A batch job was submitted by a user other than the user profile that the
batch job runs under. In this case the name of the submitting user is included
for each request message.</li>
<li>Another user changed the job attributes and auditing was not active so
a message was sent to the job to notify it of the change by another user.</li>
</ul>
</li>
<li>If the sender is an ILE procedure, additional lines are printed to identify
the module, procedure, and statement number. In the sample job log shown
above, for message MSG100F, PGMC is an ILE program.</li>
<li>If the job is a multithreaded job, and messages were sent from more than
one thread, the thread identifier is printed for each message.</li>
<li>The message is printed on one or more lines.</li>
<li>If the logging level indicates that the second-level text is to be included,
the second level text appears on subsequent lines below the message.</li>
</ul>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="jblog.htm" title="Each job has an associated job log.">Job log</a></div>
</div>
<div class="relconcepts"><strong>Related concepts</strong><br />
<div><a href="sndrcv.htm" title="The job log contains information about the sending or receiving program or procedure.">Job log sender or receiver information</a></div>
</div>
</div>
</body>
</html>