265 lines
9.6 KiB
HTML
265 lines
9.6 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>Convert TCP/IP CL Source (CVTTCPCL)</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="CVTTCPCL.Top_Of_Page"></a>
|
|
<h2>Convert TCP/IP CL Source (CVTTCPCL)</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="#CVTTCPCL.PARAMETERS.TABLE">Parameters</a><br>
|
|
<a href="#CVTTCPCL.COMMAND.EXAMPLES">Examples</a><br>
|
|
<a href="#CVTTCPCL.ERROR.MESSAGES">Error messages</a></td>
|
|
</tr>
|
|
</table>
|
|
|
|
<div> <a name="CVTTCPCL"></a>
|
|
<p>The Convert TCP/IP CL Source (CVTTCPCL) command is used to convert TCP/IP commands from releases prior to Version 3, Release 1, Modification 0 (V3R1M0) to the command syntax for the current release. The pre-V3R1M0 TCP/IP CL commands to be converted must exist in a source physical file.
|
|
</p>
|
|
<p>The following commands are converted based on their specified parameter values. In some cases you may need to manually update the commands after conversion. Messages are issued to help identify the command statements that require manual updates.
|
|
</p>
|
|
<ul>
|
|
<li>ADDTCPLNK
|
|
</li>
|
|
<li>CHGTCPLNK
|
|
</li>
|
|
<li>RMVTCPLNK
|
|
</li>
|
|
<li>STRTCPLNK
|
|
</li>
|
|
<li>ENDTCPLNK
|
|
</li>
|
|
<li>ADDTCPRTE
|
|
</li>
|
|
<li>CHGTCPRTE
|
|
</li>
|
|
<li>RMVTCPRTE
|
|
</li>
|
|
<li>ADDTCPPORT
|
|
</li>
|
|
<li>RMVTCPPORT
|
|
</li>
|
|
<li>ADDTCPRSI
|
|
</li>
|
|
<li>RMVTCPRSI
|
|
</li>
|
|
<li>CHGTCPA
|
|
</li>
|
|
<li>ENDTCPCNN
|
|
</li>
|
|
<li>STRTCPTELN
|
|
</li>
|
|
<li>CHGVT1MAP
|
|
</li>
|
|
<li>SETVT1MAP
|
|
</li>
|
|
<li>DSPVT1MAP
|
|
</li>
|
|
<li>ENDSBS SBS(QTCP)
|
|
</li>
|
|
<li>STRSBS SBSD(QTCP/QTCP)
|
|
</li>
|
|
</ul>
|
|
<p>The CVTTCPCL command creates a printer file with the name CVTTCPCL. This printer file contains a report that indicates the success or failure of the source file conversion.
|
|
</p>
|
|
<p>If a printer device file with the name CVTTCPCL is found in the job&apos.s library list when the CVTTCPCL command is issued, that printer device file is used to create the printer file. Otherwise, the CVTTCPCL command uses the Override with Printer File (OVRPRTF) command to use printer device file QSYS/QSYSPRT to create the printer file.
|
|
</p>
|
|
<p>
|
|
<b>Note: </b>Use the Create Printer File (CRTPRTF) command to create a printer device file.
|
|
</p>
|
|
<p>Successful conversions of TCP/IP command source are noted in the report with the message:
|
|
</p>
|
|
<p>
|
|
<pre>
|
|
TCP1E08 Member has been converted.
|
|
</pre>
|
|
</p>
|
|
<p>Informational messages are printed for unsuccessful command conversions. (Informational messages are also sent to the job log during conversion, and a single escape message is sent when the CVTTCPCL command has completed if any informational messages have been sent.) Some examples of functions that cannot be converted and may be printed as informational messages in the report are:
|
|
</p>
|
|
<p>
|
|
<pre>
|
|
TCP1E07 Command &1 cannot be converted
|
|
TCP1E10 Parameter keyword cannot be converted in command &1
|
|
</pre>
|
|
</p>
|
|
<p>The user can write a program, perhaps by using the Copy Spooled File (CPYSPLF) command, to process the report based on the success or failure of the conversion.
|
|
</p>
|
|
</div>
|
|
<table width="100%">
|
|
<tr><td align="right"><a href="#CVTTCPCL.Top_Of_Page">Top</a></td></tr>
|
|
</table>
|
|
<hr size="2" width="100%">
|
|
|
|
<div>
|
|
<h3><a name="CVTTCPCL.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" rowspan="3"><a href="#CVTTCPCL.FROMFILE"><b>FROMFILE</b></a></td>
|
|
<td valign="top">From file</td>
|
|
<td valign="top"><i>Qualified object name</i></td>
|
|
<td valign="top" rowspan="3">Required, Positional 1</td>
|
|
</tr>
|
|
<tr>
|
|
<td valign="top">Qualifier 1: From 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="#CVTTCPCL.TOFILE"><b>TOFILE</b></a></td>
|
|
<td valign="top">To file</td>
|
|
<td valign="top"><i>Qualified object name</i></td>
|
|
<td valign="top" rowspan="3">Required, Positional 2</td>
|
|
</tr>
|
|
<tr>
|
|
<td valign="top">Qualifier 1: To 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"><a href="#CVTTCPCL.FROMMBR"><b>FROMMBR</b></a></td>
|
|
<td valign="top">From member</td>
|
|
<td valign="top">Single values: *ALL<br>Other values (up to 50 repetitions): <i>Generic name, name</i></td>
|
|
<td valign="top">Required, Positional 3</td>
|
|
</tr>
|
|
</table>
|
|
|
|
<table width="100%">
|
|
<tr><td align="right"><a href="#CVTTCPCL.Top_Of_Page">Top</a></td></tr>
|
|
</table>
|
|
</div>
|
|
<div> <a name="CVTTCPCL.FROMFILE"></a>
|
|
<h3>From file (FROMFILE)</h3>
|
|
<p>Specifies the CL source file containing TCP/IP commands to be converted.
|
|
</p>
|
|
<p><b>Qualifier 1: From file</b>
|
|
</p>
|
|
<dl>
|
|
<dt><b><i>name</i></b></dt>
|
|
<dd>Specify the name of the CL source file to convert.
|
|
</dd>
|
|
</dl>
|
|
<p><b>Qualifier 2: Library</b>
|
|
</p>
|
|
<dl>
|
|
<dt><b><u>*LIBL</u></b></dt>
|
|
<dd>All libraries in the job's library list are searched until the first match is found.
|
|
</dd>
|
|
<dt><b>*CURLIB</b></dt>
|
|
<dd>The current library for the job is searched. If no library is specified as the current library for the job, the QGPL library is used.
|
|
</dd>
|
|
<dt><b><i>name</i></b></dt>
|
|
<dd>Specify the name of the library to be searched.
|
|
</dd>
|
|
</dl>
|
|
</div>
|
|
<table width="100%">
|
|
<tr><td align="right"><a href="#CVTTCPCL.Top_Of_Page">Top</a></td></tr>
|
|
</table>
|
|
<div> <a name="CVTTCPCL.TOFILE"></a>
|
|
<h3>To file (TOFILE)</h3>
|
|
<p>Specifies the file in which the converted source is placed. It must be different than the name of the FROMFILE parameter.
|
|
</p>
|
|
<p><b>Qualifier 1: To file</b>
|
|
</p>
|
|
<dl>
|
|
<dt><b><i>name</i></b></dt>
|
|
<dd>Specify the name in which the converted source file is placed.
|
|
</dd>
|
|
</dl>
|
|
<p><b>Qualifier 2: Library</b>
|
|
</p>
|
|
<dl>
|
|
<dt><b><u>*LIBL</u></b></dt>
|
|
<dd>All libraries in the job's library list are searched until the first match is found.
|
|
</dd>
|
|
<dt><b>*CURLIB</b></dt>
|
|
<dd>The current library for the job is searched. If no library is specified as the current library for the job, the QGPL library is used.
|
|
</dd>
|
|
<dt><b><i>name</i></b></dt>
|
|
<dd>Specify the name of the library to be searched.
|
|
</dd>
|
|
</dl>
|
|
</div>
|
|
<table width="100%">
|
|
<tr><td align="right"><a href="#CVTTCPCL.Top_Of_Page">Top</a></td></tr>
|
|
</table>
|
|
<div> <a name="CVTTCPCL.FROMMBR"></a>
|
|
<h3>From member (FROMMBR)</h3>
|
|
<p>Specifies the member of the source file member to convert.
|
|
</p>
|
|
<dl>
|
|
<dt><b>*ALL</b></dt>
|
|
<dd>All members of the specified source file are converted to V3R1M0 TCP/IP command syntax if possible.
|
|
</dd>
|
|
<dt><b><i>generic-name</i></b></dt>
|
|
<dd>Specify the generic name of the source file members to convert. A generic name is a character string of one or more characters followed by an asterisk (*); for example, ABC*. The asterisk substitutes for any valid characters. A generic name specifies all objects with names that begin with the generic prefix for which the user has authority. If an asterisk is not included with the generic (prefix) name, the system assumes it to be the complete object name. If the complete object name is specified and multiple libraries are searched, multiple objects can be converted only if *ALL or *ALLUSR library values can be specified for the name. Only the first 50 members matching the generic name's criteria will be converted.
|
|
</dd>
|
|
<dt><b><i>name</i></b></dt>
|
|
<dd>Specify the names of the source file members to convert. Specify no more than 50 names.
|
|
<p>Note that the <u> only</u> source members that are processed are those with a member type of CL, CLP, or TXT. Members in the FROMFILE with any other value for the member type are ignored by the CVTTCPCL command. If a source member is processed, the name of the converted source member in the TOFILE will be the same as the member name in the FROMFILE.
|
|
</p>
|
|
</dd>
|
|
</dl>
|
|
</div>
|
|
<table width="100%">
|
|
<tr><td align="right"><a href="#CVTTCPCL.Top_Of_Page">Top</a></td></tr>
|
|
</table>
|
|
<hr size="2" width="100%">
|
|
<div><h3><a name="CVTTCPCL.COMMAND.EXAMPLES">Examples</a> </h3>
|
|
<p>
|
|
<pre>
|
|
CVTTCPCL FROMFILE(OLDLIB/QCLSRC) TOFILE(NEWLIB/QCLSRC)
|
|
FROMMBR(TCPPGM1 TCPPGM2 TCPPGM3)
|
|
</pre>
|
|
</p>
|
|
<p>This command converts all TCP/IP commands in the three members (TCPPGM1, TCPPGM2, TCPPGM3) of a CL source file (QCLSRC) located in library OLDLIB, to their new command names and formats. The converted source file members are located in QCLSRC, in library NEWLIB. The converted members keep their original member names, TCPPGM1, TCPPGM2, and TCPPGM3.
|
|
</p>
|
|
</div>
|
|
<table width="100%">
|
|
<tr><td align="right"><a href="#CVTTCPCL.Top_Of_Page">Top</a></td></tr>
|
|
</table>
|
|
<hr size="2" width="100%">
|
|
<div><h3><a name="CVTTCPCL.ERROR.MESSAGES">Error messages</a> </h3>
|
|
<p><b><u>*ESCAPE Messages</u></b>
|
|
</p>
|
|
<dl>
|
|
<dt><b>CPF9801</b></dt>
|
|
<dd>Object &2 in library &3 not found.
|
|
</dd>
|
|
<dt><b>CPF9810</b></dt>
|
|
<dd>Library &1 not found.
|
|
</dd>
|
|
<dt><b>TCP1E02</b></dt>
|
|
<dd>File &1 in library &2 not found.
|
|
</dd>
|
|
<dt><b>TCP1E03</b></dt>
|
|
<dd>File &1 in library &2 not a source file.
|
|
</dd>
|
|
<dt><b>TCP1E06</b></dt>
|
|
<dd>Specified TOFILE same as FROMFILE.
|
|
</dd>
|
|
</dl>
|
|
</div>
|
|
<table width="100%">
|
|
<tr><td align="right"><a href="#CVTTCPCL.Top_Of_Page">Top</a></td></tr>
|
|
</table>
|
|
</body>
|
|
</html>
|