447 lines
16 KiB
HTML
447 lines
16 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>Receive Network File (RCVNETF)</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="RCVNETF.Top_Of_Page"></a>
|
|
<h2>Receive Network File (RCVNETF)</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="#RCVNETF.PARAMETERS.TABLE">Parameters</a><br>
|
|
<a href="#RCVNETF.COMMAND.EXAMPLES">Examples</a><br>
|
|
<a href="#RCVNETF.ERROR.MESSAGES">Error messages</a></td>
|
|
</tr>
|
|
</table>
|
|
|
|
<div> <a name="RCVNETF"></a>
|
|
<p>The Receive Network File (RCVNETF) command receives a network file and copies the records into a physical database file or a save file. Once the file has been received, it is removed from the queue of network files.
|
|
</p>
|
|
<p>If the original file is a save file, it must be received into a save file. Before a file can be received, the file specified by the TOFILE parameter must already exist.
|
|
</p>
|
|
<p>When a source physical file is sent, the source sequence number and change date in positions 1 through 12 of the record are sent with the file. These are kept if the file is received into a source physical file, and are truncated if the file is received into a nonsource physical file. When a file that was originally a nonsource physical file is received into a source physical file, the source sequence numbers are created and placed in front of the records.
|
|
</p>
|
|
<p>If the file is a physical file, the record length of the to-file must be at least as large as the record length of the original file. If the record length of the to-file is larger than that of the original file, the records are padded to the end with the default record value for the to-file.
|
|
</p>
|
|
<p>This command does not perform any CCSID translation on the contents of the file. However, the user ID and address of both the recipient and the originator are translated from the multinational character set 697/500 to the current job CCSID.
|
|
</p>
|
|
<p><b>Restrictions:</b>
|
|
</p>
|
|
<ol>
|
|
<li>A user with security officer authority can receive the files sent to any user. Users with other than security officer authority can receive only files sent to them or to their group profile.
|
|
</li>
|
|
<li>The user must have read authority to the library containing the to-file, and use and add authority to the to-file. The following additional authority may be required:
|
|
<ul>
|
|
<li>Object management authority, if a member is added to the file.
|
|
</li>
|
|
<li>Object management authority and delete authority, if a save file or existing physical file member is cleared.
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
</ol>
|
|
</div>
|
|
<table width="100%">
|
|
<tr><td align="right"><a href="#RCVNETF.Top_Of_Page">Top</a></td></tr>
|
|
</table>
|
|
<hr size="2" width="100%">
|
|
|
|
<div>
|
|
<h3><a name="RCVNETF.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="#RCVNETF.FROMFILE"><b>FROMFILE</b></a></td>
|
|
<td valign="top">From file</td>
|
|
<td valign="top"><i>Character value</i></td>
|
|
<td valign="top">Required, Positional 1</td>
|
|
</tr>
|
|
<tr>
|
|
<td valign="top" rowspan="3"><a href="#RCVNETF.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">Optional, Positional 2</td>
|
|
</tr>
|
|
<tr>
|
|
<td valign="top">Qualifier 1: To file</td>
|
|
<td valign="top"><i>Name</i>, <b><u>*FROMFILE</u></b></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="#RCVNETF.FROMMBR"><b>FROMMBR</b></a></td>
|
|
<td valign="top">Member to be received</td>
|
|
<td valign="top"><i>Character value</i>, <b><u>*ONLY</u></b></td>
|
|
<td valign="top">Optional, Positional 3</td>
|
|
</tr>
|
|
<tr>
|
|
<td valign="top"><a href="#RCVNETF.TOMBR"><b>TOMBR</b></a></td>
|
|
<td valign="top">To member</td>
|
|
<td valign="top"><i>Name</i>, <b><u>*FROMMBR</u></b>, *FIRST</td>
|
|
<td valign="top">Optional, Positional 4</td>
|
|
</tr>
|
|
<tr>
|
|
<td valign="top"><a href="#RCVNETF.MBROPT"><b>MBROPT</b></a></td>
|
|
<td valign="top">Replace or add records</td>
|
|
<td valign="top"><b><u>*REPLACE</u></b>, *ADD</td>
|
|
<td valign="top">Optional</td>
|
|
</tr>
|
|
<tr>
|
|
<td valign="top"><a href="#RCVNETF.NBR"><b>NBR</b></a></td>
|
|
<td valign="top">File number</td>
|
|
<td valign="top"><i>Integer</i>, <b><u>*LAST</u></b>, *ONLY, *FIRST</td>
|
|
<td valign="top">Optional</td>
|
|
</tr>
|
|
<tr>
|
|
<td valign="top"><a href="#RCVNETF.USER"><b>USER</b></a></td>
|
|
<td valign="top">User</td>
|
|
<td valign="top"><i>Name</i>, <b><u>*CURRENT</u></b></td>
|
|
<td valign="top">Optional</td>
|
|
</tr>
|
|
<tr>
|
|
<td valign="top"><a href="#RCVNETF.FROMTYPE"><b>FROMTYPE</b></a></td>
|
|
<td valign="top">From file type</td>
|
|
<td valign="top"><b><u>*NETFILE</u></b>, *SRC</td>
|
|
<td valign="top">Optional</td>
|
|
</tr>
|
|
</table>
|
|
|
|
<table width="100%">
|
|
<tr><td align="right"><a href="#RCVNETF.Top_Of_Page">Top</a></td></tr>
|
|
</table>
|
|
</div>
|
|
<div> <a name="RCVNETF.FROMFILE"></a>
|
|
<h3>From file (FROMFILE)</h3>
|
|
<p>Specifies the name of the file that is received. This is the name of the file on the sending system.
|
|
</p>
|
|
<p>This is a required parameter.
|
|
</p>
|
|
</div>
|
|
<table width="100%">
|
|
<tr><td align="right"><a href="#RCVNETF.Top_Of_Page">Top</a></td></tr>
|
|
</table>
|
|
<div> <a name="RCVNETF.TOFILE"></a>
|
|
<h3>To file (TOFILE)</h3>
|
|
<p>Specifies the name of the file into which the network file is received. Overrides to this file are ignored.
|
|
</p>
|
|
<p>The possible values are:
|
|
</p>
|
|
<dl>
|
|
<dt><b><u>*FROMFILE</u></b></dt>
|
|
<dd>The network file is received into a file of the same name as the file sent.
|
|
</dd>
|
|
<dt><b><i>file-name</i></b></dt>
|
|
<dd>Specify the name and library of the receiving file.
|
|
</dd>
|
|
</dl>
|
|
<p>The possible library values are:
|
|
</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>library-name</i></b></dt>
|
|
<dd>Specify the library where the file is located.
|
|
</dd>
|
|
</dl>
|
|
</div>
|
|
<table width="100%">
|
|
<tr><td align="right"><a href="#RCVNETF.Top_Of_Page">Top</a></td></tr>
|
|
</table>
|
|
<div> <a name="RCVNETF.FROMMBR"></a>
|
|
<h3>Member to be received (FROMMBR)</h3>
|
|
<p>Specifies the name of the file member that is received.
|
|
</p>
|
|
<p>The possible values are:
|
|
</p>
|
|
<dl>
|
|
<dt><b><u>*ONLY</u></b></dt>
|
|
<dd>Only one member is received for this file. If *ONLY is specified on the <b>File number</b> prompt (NBR parameter), only one member per file is on the arrived file queue.
|
|
</dd>
|
|
<dt><b><i>member-name</i></b></dt>
|
|
<dd>Specify the name of the member that is received. A member name cannot be specified if the file is a save file.
|
|
</dd>
|
|
</dl>
|
|
</div>
|
|
<table width="100%">
|
|
<tr><td align="right"><a href="#RCVNETF.Top_Of_Page">Top</a></td></tr>
|
|
</table>
|
|
<div> <a name="RCVNETF.TOMBR"></a>
|
|
<h3>To member (TOMBR)</h3>
|
|
<p>Specifies the database file member that receives the data.
|
|
</p>
|
|
<p>The possible values are:
|
|
</p>
|
|
<dl>
|
|
<dt><b><u>*FROMMBR</u></b></dt>
|
|
<dd>The data is received into a member with the same name as the member specified on the <b>Member to be received</b> prompt (FROMMBR parameter).
|
|
</dd>
|
|
<dt><b>*FIRST</b></dt>
|
|
<dd>The first member in the file receives the output.
|
|
</dd>
|
|
<dt><b><i>member-name</i></b></dt>
|
|
<dd>Specify the name of the member that receives the records. A member name cannot be specified if the file is a save file.
|
|
</dd>
|
|
</dl>
|
|
</div>
|
|
<table width="100%">
|
|
<tr><td align="right"><a href="#RCVNETF.Top_Of_Page">Top</a></td></tr>
|
|
</table>
|
|
<div> <a name="RCVNETF.MBROPT"></a>
|
|
<h3>Replace or add records (MBROPT)</h3>
|
|
<p>Specifies whether the new records replace or are added to the existing records.
|
|
</p>
|
|
<p>The possible values are:
|
|
</p>
|
|
<dl>
|
|
</dl>
|
|
<dl>
|
|
<dt><b><u>*REPLACE</u></b></dt>
|
|
<dd>The system clears the existing member and adds the new records.
|
|
</dd>
|
|
</dl>
|
|
<dl>
|
|
</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="#RCVNETF.Top_Of_Page">Top</a></td></tr>
|
|
</table>
|
|
<div> <a name="RCVNETF.NBR"></a>
|
|
<h3>File number (NBR)</h3>
|
|
<p>Specifies the number of the file member that is received. This number is used to identify the member that is received when there is more than one member of the same name available for the file.
|
|
</p>
|
|
<p>The possible values are:
|
|
</p>
|
|
<dl>
|
|
<dt><b><u>*LAST</u></b></dt>
|
|
<dd>The last network file member with the specified member name is received. The last member is determined as the last member to arrive at your system.
|
|
<p>
|
|
<b>Note: </b>The file member that arrived last at the user's system may not have been the last one sent by the sending user. The network does not guarantee the arrival sequence of separately sent files.
|
|
</p>
|
|
</dd>
|
|
<dt><b>*ONLY</b></dt>
|
|
<dd>Only one file member of the specified file name is received.
|
|
</dd>
|
|
<dt><b><i>member-number</i></b></dt>
|
|
<dd>Specify the number of the member that is received.
|
|
</dd>
|
|
</dl>
|
|
</div>
|
|
<table width="100%">
|
|
<tr><td align="right"><a href="#RCVNETF.Top_Of_Page">Top</a></td></tr>
|
|
</table>
|
|
<div> <a name="RCVNETF.USER"></a>
|
|
<h3>User (USER)</h3>
|
|
<p>Specifies the user to whom the file was sent.
|
|
</p>
|
|
<p>The possible values are:
|
|
</p>
|
|
<dl>
|
|
<dt><b><u>*CURRENT</u></b></dt>
|
|
<dd>The files sent to the current user are received.
|
|
</dd>
|
|
<dt><b><i>user-name</i></b></dt>
|
|
<dd>Specify the name of the user to whom the files were sent. Only users with security officer authority can specify a name other than their own or their group profile.
|
|
</dd>
|
|
</dl>
|
|
</div>
|
|
<table width="100%">
|
|
<tr><td align="right"><a href="#RCVNETF.Top_Of_Page">Top</a></td></tr>
|
|
</table>
|
|
<div> <a name="RCVNETF.FROMTYPE"></a>
|
|
<h3>From file type (FROMTYPE)</h3>
|
|
<p>Specifies the type of file that is received. This option should be used mainly when the file is an AS/400 or System/38 source file which was sent by a System/370 VM or MVS user. Since VM or MVS cannot identify whether the file is a source file, you can indicate whether the file is a source file or a non-source file.
|
|
</p>
|
|
<p>The possible values are:
|
|
</p>
|
|
<dl>
|
|
<dt><b><u>*NETFILE</u></b></dt>
|
|
<dd>The network file type is used to determine whether file type conversion is needed.
|
|
<p>If the file is a non-source file and is:
|
|
</p>
|
|
<ul>
|
|
<li>Received into a non-source file, the file is received unchanged.
|
|
</li>
|
|
<li>Received into a source file, the sequence numbers and date fields are added.
|
|
</li>
|
|
</ul>
|
|
<p>If the file is a source file and is:
|
|
</p>
|
|
<ul>
|
|
<li>Received into a non-source file, the sequence numbers and date fields are removed (the first 12 bytes of each record).
|
|
</li>
|
|
<li>Received into a source file, the file is received unchanged.
|
|
</li>
|
|
</ul>
|
|
</dd>
|
|
<dt><b>*SRC</b></dt>
|
|
<dd>The file being received is a source file. The sequence numbers and date fields are in the file. If the file is received into another source file, the sequence numbers and date fields are not added to the file being received. If the file is received into a non-source file, the sequence numbers and date fields are removed (the first 12 bytes of each record).
|
|
<p>
|
|
<b>Note: </b>*SRC must <b>not</b> be specified if the network file does not contain sequence numbers and date fields in the first 12 bytes of each record.
|
|
</p>
|
|
</dd>
|
|
</dl>
|
|
</div>
|
|
<table width="100%">
|
|
<tr><td align="right"><a href="#RCVNETF.Top_Of_Page">Top</a></td></tr>
|
|
</table>
|
|
<hr size="2" width="100%">
|
|
<div><h3><a name="RCVNETF.COMMAND.EXAMPLES">Examples</a> </h3>
|
|
<p><b>Example 1: Receiving a Member</b>
|
|
</p>
|
|
<p>
|
|
<pre>
|
|
RCVNETF FROMFILE(FILEA) TOFILE(FILEB/FILEA)
|
|
FROMMBR(PAYROLL)
|
|
</pre>
|
|
</p>
|
|
<p>This command receives member PAYROLL of file FILEA into member PAYROLL of file FILEA in library FILEB. If there is an existing member of that name, the records in the member are replaced. If multiple members of that name are available, the last one to arrive at the destination system is received.
|
|
</p>
|
|
<p><b>Example 2: Receiving a Network File</b>
|
|
</p>
|
|
<p>
|
|
<pre>
|
|
RCVNETF FROMFILE(PERSONNEL) NBR(*LAST) USER(USR1)
|
|
</pre>
|
|
</p>
|
|
<p>This command receives a network file named PERSONNEL, which was sent to user USR1, into a file with the same name. Because the FROMMBR parameter is not specified, there must be only one member name available for this file. Because USR1 is specified, only someone with a user profile of USR1, someone with a group profile of USR1, or someone with security officer authority can use this command.
|
|
</p>
|
|
<p><b>Example 3: Receiving a Source File</b>
|
|
</p>
|
|
<p>
|
|
<pre>
|
|
RCVNETF FROMFILE(FILEA) TOFILE(FILEB/FILEA)
|
|
FROMMBR(PAYROLL) FROMTYPE(*SRC)
|
|
</pre>
|
|
</p>
|
|
<p>This command specifies that the file being received is a source file and the sequence numbers and date fields are not added to the file being received.
|
|
</p>
|
|
</div>
|
|
<table width="100%">
|
|
<tr><td align="right"><a href="#RCVNETF.Top_Of_Page">Top</a></td></tr>
|
|
</table>
|
|
<hr size="2" width="100%">
|
|
<div><h3><a name="RCVNETF.ERROR.MESSAGES">Error messages</a> </h3>
|
|
<p><b><u>*ESCAPE Messages</u></b>
|
|
</p>
|
|
<dl>
|
|
<dt><b>CPF2204</b></dt>
|
|
<dd>User profile &1 not found.
|
|
</dd>
|
|
<dt><b>CPF2207</b></dt>
|
|
<dd>Not authorized to use object &1 in library &3 type *&2.
|
|
</dd>
|
|
<dt><b>CPF4101</b></dt>
|
|
<dd>File &2 in library &3 not found or inline data file missing.
|
|
</dd>
|
|
<dt><b>CPF5715</b></dt>
|
|
<dd>File &1 in library &2 not found.
|
|
</dd>
|
|
<dt><b>CPF8057</b></dt>
|
|
<dd>File &1 in &2 not a physical file or save file.
|
|
</dd>
|
|
<dt><b>CPF8059</b></dt>
|
|
<dd>Member name not allowed for save file.
|
|
</dd>
|
|
<dt><b>CPF8060</b></dt>
|
|
<dd>No files compare to the specified selection.
|
|
</dd>
|
|
<dt><b>CPF8062</b></dt>
|
|
<dd>Record length of network file larger than receiving file.
|
|
</dd>
|
|
<dt><b>CPF8063</b></dt>
|
|
<dd>Cannot assign necessary resource.
|
|
</dd>
|
|
<dt><b>CPF8070</b></dt>
|
|
<dd>Not allowed to process files for user &1.
|
|
</dd>
|
|
<dt><b>CPF8077</b></dt>
|
|
<dd>More than one file with same name found. See previously displayed messages.
|
|
</dd>
|
|
<dt><b>CPF8080</b></dt>
|
|
<dd>MBROPT(*ADD) not allowed for save file.
|
|
</dd>
|
|
<dt><b>CPF8081</b></dt>
|
|
<dd>File &5 member &6 number &7 already processed.
|
|
</dd>
|
|
<dt><b>CPF8082</b></dt>
|
|
<dd>Cannot get network file &5 member &6 number &7.
|
|
</dd>
|
|
<dt><b>CPF9005</b></dt>
|
|
<dd>System resource required to complete this request not available.
|
|
</dd>
|
|
<dt><b>CPF9006</b></dt>
|
|
<dd>User not enrolled in system distribution directory.
|
|
</dd>
|
|
<dt><b>CPF9803</b></dt>
|
|
<dd>Cannot allocate object &2 in library &3.
|
|
</dd>
|
|
<dt><b>CPF9807</b></dt>
|
|
<dd>One or more libraries in library list deleted.
|
|
</dd>
|
|
<dt><b>CPF9808</b></dt>
|
|
<dd>Cannot allocate one or more libraries on library list.
|
|
</dd>
|
|
<dt><b>CPF9810</b></dt>
|
|
<dd>Library &1 not found.
|
|
</dd>
|
|
<dt><b>CPF9812</b></dt>
|
|
<dd>File &1 in library &2 not found.
|
|
</dd>
|
|
<dt><b>CPF9820</b></dt>
|
|
<dd>Not authorized to use library &1.
|
|
</dd>
|
|
<dt><b>CPF9822</b></dt>
|
|
<dd>Not authorized to file &1 in library &2.
|
|
</dd>
|
|
<dt><b>CPF9830</b></dt>
|
|
<dd>Cannot assign library &1.
|
|
</dd>
|
|
<dt><b>CPF9843</b></dt>
|
|
<dd>Object &1 in library &3 type &2 cannot be accessed.
|
|
</dd>
|
|
<dt><b>CPF9845</b></dt>
|
|
<dd>Error occurred while opening file &1.
|
|
</dd>
|
|
<dt><b>CPF9846</b></dt>
|
|
<dd>Error while processing file &1 in library &2.
|
|
</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="#RCVNETF.Top_Of_Page">Top</a></td></tr>
|
|
</table>
|
|
</body>
|
|
</html>
|