141 lines
8.9 KiB
HTML
141 lines
8.9 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="task" />
|
|
<meta name="DC.Title" content="Log CL procedure commands" />
|
|
<meta name="abstract" content="You can specify that most CL commands run in a CL procedure be written (logged) to the job log." />
|
|
<meta name="description" content="You can specify that most CL commands run in a CL procedure be written (logged) to the job log." />
|
|
<meta name="DC.subject" content="logging CL procedure command, CL procedure, command, logging, procedure command, command, CL, logging CL procedure, documentation aid, listing CL command" />
|
|
<meta name="keywords" content="logging CL procedure command, CL procedure, command, logging, procedure command, command, CL, logging CL procedure, documentation aid, listing CL command" />
|
|
<meta name="DC.Relation" scheme="URI" content="crpro.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="../clfinder/finder.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="../cl/crtclmod.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="../cl/crtbndcl.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="../cl/chgjob.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="../cl/rmvmsg.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="jblog.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="logcd" />
|
|
<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>Log CL procedure commands</title>
|
|
</head>
|
|
<body id="logcd"><a name="logcd"><!-- --></a>
|
|
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
|
|
<h1 class="topictitle1">Log CL procedure commands</h1>
|
|
<div><p>You can specify that most CL commands run in a CL procedure be
|
|
written (logged) to the job log.</p>
|
|
<div class="section"> <p>This can be done by specifying one of the following values on
|
|
the LOG parameter on the <span class="cmdname">Create Control Language Module (CRTCLMOD)</span> command
|
|
or the <span class="cmdname">Create Bound Control Language Program (CRTBNDCL)</span> command
|
|
when the procedure is compiled: </p>
|
|
<dl><dt class="dlterm">*JOB</dt>
|
|
<dd>This default value indicates that logging is to occur when the job's logging
|
|
option is on. The option is initially set for no logging, but it can be changed
|
|
by the LOGCLPGM parameter on the <span class="cmdname">Change Job (CHGJOB)</span> command.
|
|
Therefore, if you create the module or program with this value, you can alter
|
|
the logging option for each job or several times within a job.</dd>
|
|
<dt class="dlterm">*YES</dt>
|
|
<dd>This value indicates that logging is to occur each time the CL procedure
|
|
is run. It cannot be changed by the CHGJOB command.</dd>
|
|
<dt class="dlterm">*NO</dt>
|
|
<dd>This value indicates that no logging is to occur. It cannot be changed
|
|
by the CHGJOB command.</dd>
|
|
</dl>
|
|
<p>Because these values are part of the <span class="cmdname">Create Control
|
|
Language Module (CRTCLMOD)</span> and the <span class="cmdname">Create Bound Control
|
|
Language Program (CRTBNDCL)</span> commands, you must recompile the module
|
|
or program to change them.</p>
|
|
<p>When you specify logging, you should use
|
|
the <span class="cmdname">Remove Message (RMVMSG)</span> command with care in order
|
|
not to remove any logged commands from the job log. If you specify CLEAR(*ALL)
|
|
on the RMVMSG command, any commands logged prior to running the RMVMSG command
|
|
do not appear in the job log. This affects only the CL procedure containing
|
|
the RMVMSG command and does not affect any logged commands for
|
|
the preceding or following recursion levels.</p>
|
|
<p>Not all commands are logged
|
|
to the job log. Following is a list of commands that are not logged:</p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" width="100%" frame="void" border="0" rules="none"><tbody><tr><td valign="top" width="33.33333333333333%"><strong>CALLPRC</strong></td>
|
|
<td valign="top" width="33.33333333333333%"><strong><img src="./delta.gif" alt="Start of change" />CALLSUBR<img src="./deltaend.gif" alt="End of change" /></strong></td>
|
|
<td valign="top" width="33.33333333333333%"><strong>CHGVAR</strong></td>
|
|
</tr>
|
|
<tr><td valign="top" width="33.33333333333333%"><strong>DCL</strong></td>
|
|
<td valign="top" width="33.33333333333333%"><strong>DCLF</strong></td>
|
|
<td valign="top" width="33.33333333333333%"><strong><img src="./delta.gif" alt="Start of change" />DCLPRCOPT<img src="./deltaend.gif" alt="End of change" /></strong></td>
|
|
</tr>
|
|
<tr><td valign="top" width="33.33333333333333%"><strong>DO</strong></td>
|
|
<td valign="top" width="33.33333333333333%"><strong>DOFOR</strong></td>
|
|
<td valign="top" width="33.33333333333333%"><strong>DOUNTIL</strong></td>
|
|
</tr>
|
|
<tr><td valign="top" width="33.33333333333333%"><strong>DOWHILE</strong></td>
|
|
<td valign="top" width="33.33333333333333%"><strong>ELSE</strong></td>
|
|
<td valign="top" width="33.33333333333333%"><strong>ENDDO</strong></td>
|
|
</tr>
|
|
<tr><td valign="top" width="33.33333333333333%"><strong>ENDPGM</strong></td>
|
|
<td valign="top" width="33.33333333333333%"><strong>ENDSELECT</strong></td>
|
|
<td valign="top" width="33.33333333333333%"><strong><img src="./delta.gif" alt="Start of change" />ENDSUBR<img src="./deltaend.gif" alt="End of change" /></strong></td>
|
|
</tr>
|
|
<tr><td valign="top" width="33.33333333333333%"><strong>GOTO</strong></td>
|
|
<td valign="top" width="33.33333333333333%"><strong>IF</strong></td>
|
|
<td valign="top" width="33.33333333333333%"><strong>ITERATE</strong></td>
|
|
</tr>
|
|
<tr><td valign="top" width="33.33333333333333%"><strong>LEAVE</strong></td>
|
|
<td valign="top" width="33.33333333333333%"><strong>MONMSG</strong></td>
|
|
<td valign="top" width="33.33333333333333%"><strong>OTHERWISE</strong></td>
|
|
</tr>
|
|
<tr><td valign="top" width="33.33333333333333%"><strong>PGM</strong></td>
|
|
<td valign="top" width="33.33333333333333%"><strong><img src="./delta.gif" alt="Start of change" />RTNSUBR<img src="./deltaend.gif" alt="End of change" /></strong></td>
|
|
<td valign="top" width="33.33333333333333%"><strong>SELECT</strong></td>
|
|
</tr>
|
|
<tr><td valign="top" width="33.33333333333333%"><strong><img src="./delta.gif" alt="Start of change" />SUBR<img src="./deltaend.gif" alt="End of change" /></strong></td>
|
|
<td valign="top" width="33.33333333333333%"><strong>WHEN</strong></td>
|
|
<td valign="top" width="33.33333333333333%"> </td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<p>If the logging option is on, logging messages are sent to the CL
|
|
procedure's message queue. If the CL procedure is running interactively,
|
|
and the message level on the job's LOG parameter is set to 4, you can press
|
|
F10 (Display detail messages) to view the logging of all commands. You can
|
|
print the log if the message level is 4 and you specify *PRINT when you sign
|
|
off.</p>
|
|
<p>The log includes the time, program and procedure names, message
|
|
texts, and command names. Command names are qualified as they are on the
|
|
original source statement. Command parameters are also logged; if the parameter
|
|
information is a CL variable, the contents of the variable are printed (except
|
|
for the RTNVAL parameter).</p>
|
|
<p>Logging of commands affects performance.</p>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="crpro.htm" title="A CL source procedure must be compiled into a module and bound into a program before it can be run.">Compile CL procedures</a></div>
|
|
</div>
|
|
<div class="relconcepts"><strong>Related concepts</strong><br />
|
|
<div><a href="jblog.htm" title="Each job has an associated job log.">Job log</a></div>
|
|
</div>
|
|
<div class="relinfo"><strong>Related information</strong><br />
|
|
<div><a href="../clfinder/finder.htm">CL command finder</a></div>
|
|
<div><a href="../cl/crtclmod.htm">Create CL Module (CRTCLMOD) command</a></div>
|
|
<div><a href="../cl/crtbndcl.htm">Create Bound CL Program (CRTBNDCL) command</a></div>
|
|
<div><a href="../cl/chgjob.htm">Change Job (CHGJOB) command</a></div>
|
|
<div><a href="../cl/rmvmsg.htm">Remove Message (RMVMSG) command</a></div>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html> |