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

288 lines
9.8 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>Work with Network Files (WRKNETF)</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="WRKNETF.Top_Of_Page"></a>
<h2>Work with Network Files (WRKNETF)</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="#WRKNETF.PARAMETERS.TABLE">Parameters</a><br>
<a href="#WRKNETF.COMMAND.EXAMPLES">Examples</a><br>
<a href="#WRKNETF.ERROR.MESSAGES">Error messages</a></td>
</tr>
</table>
<div> <a name="WRKNETF"></a>
<p>The Work with Network Files (WRKNETF) command displays or prints a list of files that have arrived for a user, or creates an output file containing a list of the files. When the list is shown, you can:
</p>
<ul>
<li>Receive the file into a user file.
</li>
<li>Delete the file.
</li>
<li>Browse the file (not valid for save files).
</li>
<li>Submit files (submit the input stream). (Also not valid for save files).
</li>
</ul>
<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 display the network files for any user. Users other than the security officer can show only those files that were sent to them or to their group profile.
</li>
<li>To perform any of the options from this display, you must be authorized to the command corresponding to that option. For example, you must be authorized to the Display Physical File Member (DSPPFM) command for the browse function, and the Submit Database Jobs (SBMDBJOB) command for the submit job function.
</li>
<li>To perform WRKNETF in debug mode, update of production files must be allowed by specifying UPDPROD(*YES) on the STRDBG command.
</li>
</ol>
</div>
<table width="100%">
<tr><td align="right"><a href="#WRKNETF.Top_Of_Page">Top</a></td></tr>
</table>
<hr size="2" width="100%">
<div>
<h3><a name="WRKNETF.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="#WRKNETF.USER"><b>USER</b></a></td>
<td valign="top">User</td>
<td valign="top"><i>Name</i>, <b><u>*CURRENT</u></b>, *ALL</td>
<td valign="top">Optional, Positional 1</td>
</tr>
<tr>
<td valign="top"><a href="#WRKNETF.OUTPUT"><b>OUTPUT</b></a></td>
<td valign="top">Output</td>
<td valign="top"><b><u>*</u></b>, *PRINT, *OUTFILE</td>
<td valign="top">Optional, Positional 2</td>
</tr>
<tr>
<td valign="top" rowspan="3"><a href="#WRKNETF.OUTFILE"><b>OUTFILE</b></a></td>
<td valign="top">File to receive output</td>
<td valign="top"><i>Qualified object name</i></td>
<td valign="top" rowspan="3">Optional</td>
</tr>
<tr>
<td valign="top">Qualifier 1: File to receive output</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="#WRKNETF.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="#WRKNETF.Top_Of_Page">Top</a></td></tr>
</table>
</div>
<div> <a name="WRKNETF.USER"></a>
<h3>User (USER)</h3>
<p>Specifies the user for whom the files are shown.
</p>
<dl>
<dt><b><u>*CURRENT</u></b></dt>
<dd>The network files for the current user are shown.
</dd>
<dt><b>*ALL</b></dt>
<dd>The network files for all users are shown.
</dd>
<dt><b><i>user-name</i></b></dt>
<dd>Specify the name of the specified user whose files are shown.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#WRKNETF.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="WRKNETF.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>
<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>
</dl>
<dl>
<dt><b>*PRINT</b></dt>
<dd>The output is printed with the job's spooled output.
</dd>
</dl>
<dl>
</dl>
<dl>
<dt><b>*OUTFILE</b></dt>
<dd>The output is directed to the database file specified for the <b>File to receive output (OUTFILE)</b> parameter.
</dd>
</dl>
<dl>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#WRKNETF.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="WRKNETF.OUTFILE"></a>
<h3>File to receive output (OUTFILE)</h3>
<p>Specifies the name and library of the database file to which the output of the command is directed. If the file does not exist, this command creates a database file in the specified library.
</p>
<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="#WRKNETF.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="WRKNETF.OUTMBR"></a>
<h3>Member to receive output (OUTMBR)</h3>
<p>Specifies the name of the database file member that receives the output of the command.
</p>
<p>The possible name values are:
</p>
<dl>
<dt><b><u>*FIRST</u></b></dt>
<dd>The first member in the file receives the output. If it does not exist, the system creates a member with the name of the file specified on the <b>File to receive output</b> prompt (OUTFILE parameter).
</dd>
<dt><b><i>member-name</i></b></dt>
<dd>Specify the name of the file member that receives the output. If it does not exist, the system creates it.
</dd>
</dl>
<p>The possible values for <b>how information is stored</b> 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="#WRKNETF.Top_Of_Page">Top</a></td></tr>
</table>
<hr size="2" width="100%">
<div><h3><a name="WRKNETF.COMMAND.EXAMPLES">Examples</a> </h3>
<p><b>Example 1: Working with User's Network Files</b>
</p>
<p>
<pre>
WRKNETF
</pre>
</p>
<p>This command allows you to work with all network files for the user running this command. If the command is issued as an interactive job, the list of files is shown at the requesting work station. If the command is issued as a batch job, the list of files is printed with the job's spooled output.
</p>
<p><b>Example 2: Printing Output</b>
</p>
<p>
<pre>
WRKNETF USER(USR1) OUTPUT(*PRINT)
</pre>
</p>
<p>This command allows you to work with the network files for USR1 and prints the output with the job's spooled output. This command can only be issued by USR1, a member of the USR1 group, or a user with security officer authority.
</p>
<p><b>Example 3: Working with Network Files for All Users</b>
</p>
<p>
<pre>
WRKNETF USER(*ALL) OUTPUT(*OUTFILE) OUTFILE(NETFILES)
</pre>
</p>
<p>This command allows you to work with the network files for all users and is written to the first member of a database named NETFILES. If the file exists in a library on the library list, the existing file is used; otherwise, the file is created in the QGPL library. If the file did not exist, or did not contain any members, a member with the same name as the file is added to the file; otherwise, the first member of the file is cleared and used. This command can be issued only by a user with security officer rights.
</p>
</div>
<table width="100%">
<tr><td align="right"><a href="#WRKNETF.Top_Of_Page">Top</a></td></tr>
</table>
<hr size="2" width="100%">
<div><h3><a name="WRKNETF.ERROR.MESSAGES">Error messages</a> </h3>
<p><b><u>*ESCAPE Messages</u></b>
</p>
<dl>
<dt><b>CPF2204</b></dt>
<dd>User profile &amp;1 not found.
</dd>
<dt><b>CPF8070</b></dt>
<dd>Not allowed to process files for user &amp;1.
</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>CPF9830</b></dt>
<dd>Cannot assign library &amp;1.
</dd>
<dt><b>CPF9845</b></dt>
<dd>Error occurred while opening file &amp;1.
</dd>
<dt><b>CPF9846</b></dt>
<dd>Error while processing file &amp;1 in library &amp;2.
</dd>
<dt><b>CPF9847</b></dt>
<dd>Error occurred while closing file &amp;1 in library &amp;2.
</dd>
<dt><b>CPF9860</b></dt>
<dd>Error occurred during output file processing.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#WRKNETF.Top_Of_Page">Top</a></td></tr>
</table>
</body>
</html>