ibm-information-center/dist/eclipse/plugins/i5OS.ic.cl_5.4.0.1/cvtipsifc.htm

141 lines
5.2 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 IP Address (CVTIPSIFC)</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="CVTIPSIFC.Top_Of_Page"></a>
<h2>Convert IP Address (CVTIPSIFC)</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="#CVTIPSIFC.PARAMETERS.TABLE">Parameters</a><br>
<a href="#CVTIPSIFC.COMMAND.EXAMPLES">Examples</a><br>
<a href="#CVTIPSIFC.ERROR.MESSAGES">Error messages</a></td>
</tr>
</table>
<div> <a name="CVTIPSIFC"></a>
<p>The Convert IP over SNA Interface (CVTIPSIFC) command converts an IP (Internet Protocol) address into its associated SNA network identifier and location name. The location entries defined with the Add IP over SNA Location Entry (ADDIPSLOC) CL command are searched to find the SNA location name and SNA network identifier associated with the input internet address (INTNETADR).
</p>
</div>
<table width="100%">
<tr><td align="right"><a href="#CVTIPSIFC.Top_Of_Page">Top</a></td></tr>
</table>
<hr size="2" width="100%">
<div>
<h3><a name="CVTIPSIFC.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="#CVTIPSIFC.INTNETADR"><b>INTNETADR</b></a></td>
<td valign="top">Internet address</td>
<td valign="top"><i>Character value</i></td>
<td valign="top">Required, Positional 1</td>
</tr>
<tr>
<td valign="top"><a href="#CVTIPSIFC.OUTPUT"><b>OUTPUT</b></a></td>
<td valign="top">Output</td>
<td valign="top"><b><u>*</u></b>, *PRINT</td>
<td valign="top">Optional, Positional 2</td>
</tr>
</table>
<table width="100%">
<tr><td align="right"><a href="#CVTIPSIFC.Top_Of_Page">Top</a></td></tr>
</table>
</div>
<div> <a name="CVTIPSIFC.INTNETADR"></a>
<h3>Internet address (INTNETADR)</h3>
<p>Specifies the internet address of the local host or a remote host to be converted. The internet address is specified in the form <i>nnn.nnn.nnn.nnn</i>, where <i>nnn</i> is a decimal number ranging from 0 through 255. An internet address is not valid if it has a value of all binary ones or all binary zeros for the network identifier (ID) portion or the host ID portion of the address. If the internet address is entered from a command line, the address must be enclosed in apostrophes.
</p>
<p>This is a required parameter.
</p>
<p><b>Restrictions:</b>
</p>
<ol>
<li>The internet address cannot begin with 0 (for example, 0.nnn.nnn.nnn).
</li>
<li>The internet address cannot begin with 127 (for example, 127.nnn.nnn.nnn). This address range is reserved for TCP/IP loopback addresses.
</li>
<li>The internet address cannot be a class D or class E address. Valid class D addresses range from 224.nnn.nnn.nnn to 239.nnn.nnn.nnn. Valid class E addresses range from 240.nnn.nnn.nnn to 255.nnn.nnn.nnn.
</li>
</ol>
</div>
<table width="100%">
<tr><td align="right"><a href="#CVTIPSIFC.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="CVTIPSIFC.OUTPUT"></a>
<h3>Output (OUTPUT)</h3>
<p>Specifies where the result should be returned.
</p>
<p>The possible values are:
</p>
<dl>
<dt><b><u>*</u></b></dt>
<dd>The output is displayed (if requested by an interactive job) or printed with the job's spooled output (if requested by a batch job).
</dd>
<dt><b>*PRINT</b></dt>
<dd>The output is printed with the job's spooled output.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#CVTIPSIFC.Top_Of_Page">Top</a></td></tr>
</table>
<hr size="2" width="100%">
<div><h3><a name="CVTIPSIFC.COMMAND.EXAMPLES">Examples</a> </h3>
<p><b>Example 1: Printing a Converted IP Address</b>
</p>
<p>
<pre>
CVTIPSIFC INTNETADR('128.1.2.3') OUTPUT(*PRINT)
</pre>
</p>
<p>This command finds the SNA network identifier and location name associated with IP address 128.1.2.3 and puts the result in the job's spooled output.
</p>
<p><b>Example 2: Displaying a Converted IP Address</b>
</p>
<p>
<pre>
CVTIPSIFC INTNETADR(128.2.3.4)
</pre>
</p>
<p>This command finds the SNA Network Identifier and Location Name associated with IP address 128.2.3.4 and puts the result to the display for an interactive job.
</p>
</div>
<table width="100%">
<tr><td align="right"><a href="#CVTIPSIFC.Top_Of_Page">Top</a></td></tr>
</table>
<hr size="2" width="100%">
<div><h3><a name="CVTIPSIFC.ERROR.MESSAGES">Error messages</a> </h3>
<p><b><u>*ESCAPE Messages</u></b>
</p>
<dl>
<dt><b>CPFA111</b></dt>
<dd>Internet address not converted.
</dd>
<dt><b>CPFA118</b></dt>
<dd>No associated SNA network identifier and location name found.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#CVTIPSIFC.Top_Of_Page">Top</a></td></tr>
</table>
</body>
</html>