360 lines
12 KiB
HTML
360 lines
12 KiB
HTML
|
|
||
|
<!doctype html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||
|
<html>
|
||
|
<head><META http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||
|
<title>Trace ICF (TRCICF)</title>
|
||
|
<link rel="stylesheet" type="text/css" href="../rzahg/ic.css">
|
||
|
</head>
|
||
|
<body bgcolor="white">
|
||
|
<script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
|
||
|
<a name="TRCICF.Top_Of_Page"></a>
|
||
|
<h2>Trace ICF (TRCICF)</h2>
|
||
|
<table width="100%">
|
||
|
<tr>
|
||
|
<td valign="top" align="left"><b>Where allowed to run: </b>All environments (*ALL)<br>
|
||
|
<b>Threadsafe: </b>No
|
||
|
</td>
|
||
|
<td valign="top" align="right">
|
||
|
<a href="#TRCICF.PARAMETERS.TABLE">Parameters</a><br>
|
||
|
<a href="#TRCICF.COMMAND.EXAMPLES">Examples</a><br>
|
||
|
<a href="#TRCICF.ERROR.MESSAGES">Error messages</a></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
|
||
|
<div> <a name="TRCICF"></a>
|
||
|
<p>The Trace Intersystems Communications Functions (TRCICF) command is used to start and stop the tracing of language operations and Intersystem Communications Functions (ICF) issued by your program. TRCICF can be started from the command entry display or from a CL program.
|
||
|
</p>
|
||
|
<p>As trace records are collected, they are stored in an internal trace storage area. When the trace is ended, the trace records can be directed to a spooled output file or a database physical file.
|
||
|
</p>
|
||
|
<p>If the Start Service Job (STRSRVJOB) command is entered before the TRCICF command, the job that is traced is the one specified on the STRSRVJOB command. The trace output from the serviced job is returned to the servicing job after the trace is set off or after the serviced job has ended.
|
||
|
</p>
|
||
|
<p><b>Restrictions:</b>
|
||
|
</p>
|
||
|
<ol>
|
||
|
<li>The record format of the database output file must match the record format of the IBM-supplied output file, QAIFTRCF.
|
||
|
</li>
|
||
|
<li>The user must have specific authority from the security officer to use this command.
|
||
|
</li>
|
||
|
</ol>
|
||
|
</div>
|
||
|
<table width="100%">
|
||
|
<tr><td align="right"><a href="#TRCICF.Top_Of_Page">Top</a></td></tr>
|
||
|
</table>
|
||
|
<hr size="2" width="100%">
|
||
|
|
||
|
<div>
|
||
|
<h3><a name="TRCICF.PARAMETERS.TABLE">Parameters</a></h3>
|
||
|
<table border="1" cellpadding="4" cellspacing="0">
|
||
|
<!-- col1="10" col2="15" col3="30" col4="10" -->
|
||
|
<tr>
|
||
|
<th bgcolor="aqua" valign="bottom" align="left">Keyword</th>
|
||
|
<th bgcolor="aqua" valign="bottom" align="left">Description</th>
|
||
|
<th bgcolor="aqua" valign="bottom" align="left">Choices</th>
|
||
|
<th bgcolor="aqua" valign="bottom" align="left">Notes</th>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td valign="top"><a href="#TRCICF.SET"><b>SET</b></a></td>
|
||
|
<td valign="top">Trace option setting</td>
|
||
|
<td valign="top"><b><u>*ON</u></b>, *OFF, *END</td>
|
||
|
<td valign="top">Optional, Positional 1</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td valign="top"><a href="#TRCICF.MAXSTG"><b>MAXSTG</b></a></td>
|
||
|
<td valign="top">Maximum storage to use</td>
|
||
|
<td valign="top">1-16000, <b><u>200</u></b></td>
|
||
|
<td valign="top">Optional, Positional 2</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td valign="top"><a href="#TRCICF.TRCFULL"><b>TRCFULL</b></a></td>
|
||
|
<td valign="top">Trace full</td>
|
||
|
<td valign="top"><b><u>*WRAP</u></b>, *STOPTRC</td>
|
||
|
<td valign="top">Optional, Positional 3</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td valign="top"><a href="#TRCICF.DTALEN"><b>DTALEN</b></a></td>
|
||
|
<td valign="top">User data length</td>
|
||
|
<td valign="top">0-4096, <b><u>128</u></b></td>
|
||
|
<td valign="top">Optional, Positional 4</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td valign="top"><a href="#TRCICF.OUTPUT"><b>OUTPUT</b></a></td>
|
||
|
<td valign="top">Output</td>
|
||
|
<td valign="top"><b><u>*PRINT</u></b>, *OUTFILE</td>
|
||
|
<td valign="top">Optional</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td valign="top" rowspan="3"><a href="#TRCICF.OUTFILE"><b>OUTFILE</b></a></td>
|
||
|
<td valign="top">Output file</td>
|
||
|
<td valign="top"><i>Qualified object name</i></td>
|
||
|
<td valign="top" rowspan="3">Optional</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td valign="top">Qualifier 1: Output file</td>
|
||
|
<td valign="top"><i>Name</i></td>
|
||
|
</tr><tr>
|
||
|
<td valign="top">Qualifier 2: Library</td>
|
||
|
<td valign="top"><i>Name</i>, <b><u>*LIBL</u></b>, *CURLIB</td>
|
||
|
</tr><tr>
|
||
|
<td valign="top" rowspan="3"><a href="#TRCICF.OUTMBR"><b>OUTMBR</b></a></td>
|
||
|
<td valign="top">Output member options</td>
|
||
|
<td valign="top"><i>Element list</i></td>
|
||
|
<td valign="top" rowspan="3">Optional</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td valign="top">Element 1: Member to receive output</td>
|
||
|
<td valign="top">
|
||
|
<i>Name</i>, <b><u>*FIRST</u></b></td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td valign="top">Element 2: Replace or add records</td>
|
||
|
<td valign="top">
|
||
|
<b><u>*REPLACE</u></b>, *ADD</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
|
||
|
<table width="100%">
|
||
|
<tr><td align="right"><a href="#TRCICF.Top_Of_Page">Top</a></td></tr>
|
||
|
</table>
|
||
|
</div>
|
||
|
<div> <a name="TRCICF.SET"></a>
|
||
|
<h3>Trace option setting (SET)</h3>
|
||
|
<p>Specifies whether an ICF trace is started, stopped, or ended.
|
||
|
</p>
|
||
|
<dl>
|
||
|
<dt><b><u>*ON</u></b></dt>
|
||
|
<dd>Specifies that the trace ICF is started. If the trace storage area becomes full, the action specified on the TRCFULL parameter is taken.
|
||
|
</dd>
|
||
|
<dt><b>*OFF</b></dt>
|
||
|
<dd>Specifies that the trace ICF is stopped. No further ICF activity is recorded and the trace records created are written to the job's spooled printer file or a database file.
|
||
|
</dd>
|
||
|
<dt><b>*END</b></dt>
|
||
|
<dd>Specifies that the trace ICF is ended, and all existing trace information is deleted. No output is generated.
|
||
|
</dd>
|
||
|
</dl>
|
||
|
</div>
|
||
|
<table width="100%">
|
||
|
<tr><td align="right"><a href="#TRCICF.Top_Of_Page">Top</a></td></tr>
|
||
|
</table>
|
||
|
<div> <a name="TRCICF.MAXSTG"></a>
|
||
|
<h3>Maximum storage to use (MAXSTG)</h3>
|
||
|
<p>Specifies the maximum amount of storage (in kilobytes) to be used for generated trace records. This parameter is valid only if *ON is specified for the <b>Trace option setting (SET)</b> parameter.
|
||
|
</p>
|
||
|
<dl>
|
||
|
<dt><b><u>200</u></b></dt>
|
||
|
<dd>Specifies that a maximum of 200 kilobytes is used.
|
||
|
</dd>
|
||
|
<dt><b><i>1-16000</i></b></dt>
|
||
|
<dd>Specify the number of kilobytes of storage to use for created records.
|
||
|
</dd>
|
||
|
</dl>
|
||
|
</div>
|
||
|
<table width="100%">
|
||
|
<tr><td align="right"><a href="#TRCICF.Top_Of_Page">Top</a></td></tr>
|
||
|
</table>
|
||
|
<div> <a name="TRCICF.TRCFULL"></a>
|
||
|
<h3>Trace full (TRCFULL)</h3>
|
||
|
<p>Specifies whether new trace records replace old trace records with new records or to stop the trace function when all of the storage specified for the <b>Maximum storage to use (MAXSTG)</b> parameter has been used. This parameter is valid only if *ON is specified for the <b>Trace option setting (SET)</b> parameter.
|
||
|
</p>
|
||
|
<dl>
|
||
|
<dt><b><u>*WRAP</u></b></dt>
|
||
|
<dd>When the trace table is full, the trace wraps to the beginning. The oldest trace records are written over by new ones as they are generated.
|
||
|
</dd>
|
||
|
<dt><b>*STOPTRC</b></dt>
|
||
|
<dd>Tracing is stopped when the trace table is full. You must still enter the TRCICF command and specify *OFF to get the trace output.
|
||
|
</dd>
|
||
|
</dl>
|
||
|
</div>
|
||
|
<table width="100%">
|
||
|
<tr><td align="right"><a href="#TRCICF.Top_Of_Page">Top</a></td></tr>
|
||
|
</table>
|
||
|
<div> <a name="TRCICF.DTALEN"></a>
|
||
|
<h3>User data length (DTALEN)</h3>
|
||
|
<p>Specifies the maximum length (in bytes) of user data that is traced. This parameter is valid only if *ON is specified for the <b>Trace option setting (SET)</b> parameter.
|
||
|
</p>
|
||
|
<dl>
|
||
|
<dt><b><u>128</u></b></dt>
|
||
|
<dd>A maximum of 128 bytes of user data is traced.
|
||
|
</dd>
|
||
|
<dt><b><i>0-4096</i></b></dt>
|
||
|
<dd>Specify the maximum number of bytes of user data to be traced.
|
||
|
</dd>
|
||
|
</dl>
|
||
|
</div>
|
||
|
<table width="100%">
|
||
|
<tr><td align="right"><a href="#TRCICF.Top_Of_Page">Top</a></td></tr>
|
||
|
</table>
|
||
|
<div> <a name="TRCICF.OUTPUT"></a>
|
||
|
<h3>Output (OUTPUT)</h3>
|
||
|
<p>Specifies whether the output from the command is displayed at the requesting work station or printed with the job's spooled output.
|
||
|
</p>
|
||
|
<dl>
|
||
|
</dl>
|
||
|
<dl>
|
||
|
<dt><b><u>*PRINT</u></b></dt>
|
||
|
<dd>The output is printed with the job's spooled output.
|
||
|
</dd>
|
||
|
</dl>
|
||
|
<dl>
|
||
|
<dt><b>*OUTFILE</b></dt>
|
||
|
<dd>The output is saved in a user-specified database file.
|
||
|
</dd>
|
||
|
</dl>
|
||
|
</div>
|
||
|
<table width="100%">
|
||
|
<tr><td align="right"><a href="#TRCICF.Top_Of_Page">Top</a></td></tr>
|
||
|
</table>
|
||
|
<div> <a name="TRCICF.OUTFILE"></a>
|
||
|
<h3>Output file (OUTFILE)</h3>
|
||
|
<p>Specifies the name and library of the physical file to which the trace ICF output is directed. If the database file specified already exists, its record format must match the record format of the IBM-supplied output file, QAIFTRCF.
|
||
|
</p>
|
||
|
<p><b>Qualifier 1: Output file</b>
|
||
|
</p>
|
||
|
<dl>
|
||
|
<dt><b><i>name</i></b></dt>
|
||
|
<dd>Specify the name of the physical file to which the trace output is directed.
|
||
|
</dd>
|
||
|
</dl>
|
||
|
<p><b>Qualifier 2: Library</b>
|
||
|
</p>
|
||
|
<dl>
|
||
|
<dt><b><u>*LIBL</u></b></dt>
|
||
|
<dd>The library list is used to locate the file.
|
||
|
</dd>
|
||
|
<dt><b>*CURLIB</b></dt>
|
||
|
<dd>The current library for the job is used to locate the file. If no library is specified as the current library for the job, QGPL is used.
|
||
|
</dd>
|
||
|
<dt><b><i>name</i></b></dt>
|
||
|
<dd>Specify the name of the library where the file is located.
|
||
|
</dd>
|
||
|
</dl>
|
||
|
</div>
|
||
|
<table width="100%">
|
||
|
<tr><td align="right"><a href="#TRCICF.Top_Of_Page">Top</a></td></tr>
|
||
|
</table>
|
||
|
<div> <a name="TRCICF.OUTMBR"></a>
|
||
|
<h3>Output member options (OUTMBR)</h3>
|
||
|
<p>Specifies the name of the member in the physical file that receives the trace output. If the file specified for the <b>Output file</b> (OUTFILE) parameter is created by the system, a member is created for the file with the name specified. If the OUTFILE exists but the OUTMBR does not, a member with the specified name will is added. This parameter is valid only if SET(*OFF) is specified.
|
||
|
</p>
|
||
|
<p><b>Element 1: Member to receive output</b>
|
||
|
</p>
|
||
|
<dl>
|
||
|
<dt><b><u>*FIRST</u></b></dt>
|
||
|
<dd>The first member of the file specified for the OUTFILE parameter receives the trace output. If the file is created and *FIRST is specified, the name of the created member is the same as that of the created file.
|
||
|
</dd>
|
||
|
<dt><b><i>name</i></b></dt>
|
||
|
<dd>Specify the name of the member, within the file specified for the OUTFILE parameter, that receives the trace output.
|
||
|
</dd>
|
||
|
</dl>
|
||
|
<p><b>Element 2: Replace or add records</b>
|
||
|
</p>
|
||
|
<dl>
|
||
|
<dt><b><u>*REPLACE</u></b></dt>
|
||
|
<dd>The new data replaces existing data.
|
||
|
</dd>
|
||
|
</dl>
|
||
|
<dl>
|
||
|
<dt><b>*ADD</b></dt>
|
||
|
<dd>The system adds the new records to the end of the existing records.
|
||
|
</dd>
|
||
|
</dl>
|
||
|
<dl>
|
||
|
</dl>
|
||
|
</div>
|
||
|
<table width="100%">
|
||
|
<tr><td align="right"><a href="#TRCICF.Top_Of_Page">Top</a></td></tr>
|
||
|
</table>
|
||
|
<hr size="2" width="100%">
|
||
|
<div><h3><a name="TRCICF.COMMAND.EXAMPLES">Examples</a> </h3>
|
||
|
<p><b>Example 1: Starting Trace Operation</b>
|
||
|
</p>
|
||
|
<p>
|
||
|
<pre>
|
||
|
TRCICF MAXSTG(350) DTALEN(256)
|
||
|
</pre>
|
||
|
</p>
|
||
|
<p>This command traces the ICF input/output operations of the current job. The trace file contains 350K of storage and wraps to the beginning if that amount of storage is filled with trace records. In addition, this command traces up to 256 bytes of user data on each input/output operation.
|
||
|
</p>
|
||
|
<p><b>Example 2: Stopping Trace Operation</b>
|
||
|
</p>
|
||
|
<p>
|
||
|
<pre>
|
||
|
TRCICF SET(*OFF) OUTPUT(*OUTFILE) OUTFILE(TRACELIB/ICFTRACE)
|
||
|
OUTMBR(TRACEMBR)
|
||
|
</pre>
|
||
|
</p>
|
||
|
<p>This command stops the trace and directs the output to the database file ICFTRACE in library TRACELIB. The output is directed to the member TRACEMBR.
|
||
|
</p>
|
||
|
</div>
|
||
|
<table width="100%">
|
||
|
<tr><td align="right"><a href="#TRCICF.Top_Of_Page">Top</a></td></tr>
|
||
|
</table>
|
||
|
<hr size="2" width="100%">
|
||
|
<div><h3><a name="TRCICF.ERROR.MESSAGES">Error messages</a> </h3>
|
||
|
<p><b><u>*ESCAPE Messages</u></b>
|
||
|
</p>
|
||
|
<dl>
|
||
|
<dt><b>CPF2C90</b></dt>
|
||
|
<dd>Maximum storage specified too small.
|
||
|
</dd>
|
||
|
<dt><b>CPF2C93</b></dt>
|
||
|
<dd>No trace records logged.
|
||
|
</dd>
|
||
|
<dt><b>CPF2C94</b></dt>
|
||
|
<dd>Error occurred during OUTFILE processing. Trace stopped.
|
||
|
</dd>
|
||
|
<dt><b>CPF2C95</b></dt>
|
||
|
<dd>Trace already active.
|
||
|
</dd>
|
||
|
<dt><b>CPF2C96</b></dt>
|
||
|
<dd>Trace already off.
|
||
|
</dd>
|
||
|
<dt><b>CPF3B34</b></dt>
|
||
|
<dd>Cannot deactivate trace, trace started from another job.
|
||
|
</dd>
|
||
|
<dt><b>CPF3205</b></dt>
|
||
|
<dd>File not created.
|
||
|
</dd>
|
||
|
<dt><b>CPF3501</b></dt>
|
||
|
<dd>Job is already being serviced, traced, or debugged.
|
||
|
</dd>
|
||
|
<dt><b>CPF3530</b></dt>
|
||
|
<dd>Conflicting entries in index QSERVICE.
|
||
|
</dd>
|
||
|
<dt><b>CPF3548</b></dt>
|
||
|
<dd>Serviced job completed running.
|
||
|
</dd>
|
||
|
<dt><b>CPF3925</b></dt>
|
||
|
<dd>Cannot open file &1.
|
||
|
</dd>
|
||
|
<dt><b>CPF3936</b></dt>
|
||
|
<dd>Job being serviced ended before trace started.
|
||
|
</dd>
|
||
|
<dt><b>CPF3950</b></dt>
|
||
|
<dd>Error message &2 received for file &1. Request ended.
|
||
|
</dd>
|
||
|
<dt><b>CPF3951</b></dt>
|
||
|
<dd>File &1 cannot be overridden by file name &2.
|
||
|
</dd>
|
||
|
<dt><b>CPF3969</b></dt>
|
||
|
<dd>Error during close of file &1. Output may not be complete.
|
||
|
</dd>
|
||
|
<dt><b>CPF5004</b></dt>
|
||
|
<dd>Printer overflow line detected for file &1.
|
||
|
</dd>
|
||
|
<dt><b>CPF9847</b></dt>
|
||
|
<dd>Error occurred while closing file &1 in library &2.
|
||
|
</dd>
|
||
|
<dt><b>CPF9848</b></dt>
|
||
|
<dd>Cannot open file &1 in library &2 member &3.
|
||
|
</dd>
|
||
|
<dt><b>CPF9849</b></dt>
|
||
|
<dd>Error while processing file &1 in library &2 member &3.
|
||
|
</dd>
|
||
|
</dl>
|
||
|
</div>
|
||
|
<table width="100%">
|
||
|
<tr><td align="right"><a href="#TRCICF.Top_Of_Page">Top</a></td></tr>
|
||
|
</table>
|
||
|
</body>
|
||
|
</html>
|