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

261 lines
8.5 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>Display Remote Definition (DSPRMTDFN)</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="DSPRMTDFN.Top_Of_Page"></a>
<h2>Display Remote Definition (DSPRMTDFN)</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="#DSPRMTDFN.PARAMETERS.TABLE">Parameters</a><br>
<a href="#DSPRMTDFN.COMMAND.EXAMPLES">Examples</a><br>
<a href="#DSPRMTDFN.ERROR.MESSAGES">Error messages</a></td>
</tr>
</table>
<div> <a name="DSPRMTDFN"></a>
<p>The Display Remote Definition (DSPRMTDFN) command allows the user to display or print remote definitions for a system. The output can be displayed, printed, or directed to a database file.
</p>
</div>
<table width="100%">
<tr><td align="right"><a href="#DSPRMTDFN.Top_Of_Page">Top</a></td></tr>
</table>
<hr size="2" width="100%">
<div>
<h3><a name="DSPRMTDFN.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="#DSPRMTDFN.SYSTEM"><b>SYSTEM</b></a></td>
<td valign="top">System name</td>
<td valign="top"><i>Element list</i></td>
<td valign="top" rowspan="3">Required, Positional 1</td>
</tr>
<tr>
<td valign="top">Element 1: System name</td>
<td valign="top">
<i>Character value</i>, *ANY, *ALL</td>
</tr>
<tr>
<td valign="top">Element 2: System group</td>
<td valign="top">
<i>Character value</i></td>
</tr>
<tr>
<td valign="top"><a href="#DSPRMTDFN.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="#DSPRMTDFN.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="#DSPRMTDFN.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">
*ADD, <b><u>*REPLACE</u></b></td>
</tr>
</table>
<table width="100%">
<tr><td align="right"><a href="#DSPRMTDFN.Top_Of_Page">Top</a></td></tr>
</table>
</div>
<div> <a name="DSPRMTDFN.SYSTEM"></a>
<h3>System name (SYSTEM)</h3>
<p>Specifies the system name and system group of the remote system being displayed.
</p>
<p>The possible values are:
</p>
<dl>
<dt><b>*ANY</b></dt>
<dd>Displays the default definition for a remote system not covered by the other entries.
</dd>
<dt><b>*ALL</b></dt>
<dd>Displays all definitions for remote systems.
</dd>
</dl>
<p>The possible <b>System Name</b> value is:
</p>
<dl>
<dt><b><i>system-name</i></b></dt>
<dd>Specify the name of the remote system to be displayed.
</dd>
</dl>
<p>The possible <b>System Group</b> value is:
</p>
<dl>
<dt><b><i>system-group</i></b></dt>
<dd>Specify the group name of the remote system to be displayed. Do not specify this value if the group name is blank.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#DSPRMTDFN.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="DSPRMTDFN.OUTPUT"></a>
<h3>Output (OUTPUT)</h3>
<p>Specifies whether the output from this command is displayed, printed, or directed to a database file. More information on this parameter is in "Appendix A, Expanded Parameter Descriptions" in the CL Reference.
</p>
<p>The possible values are:
</p>
<dl>
<dt><b><u>*</u></b></dt>
<dd>Output requested by an interactive job is shown on the display. Output requested by a batch job is printed with the job's spooled output.
</dd>
<dt><b>*PRINT</b></dt>
<dd>The output is printed with the job's spooled output.
</dd>
<dt><b>*OUTFILE</b></dt>
<dd>The output is directed to the database file specified on the <b>File to receive output</b> prompt (OUTFILE parameter).
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#DSPRMTDFN.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="DSPRMTDFN.OUTFILE"></a>
<h3>File to receive output (OUTFILE)</h3>
<p>Specifies the qualified name of the database file to which the output of this command is directed. If the file does not exist, the system creates a file in the specified library. If a new file is created, system file QAOCRMTDFN in system library QSYS with a record format name of RMTDFN is used as a model. If the file already exists, it must have this format.
</p>
<p>The possible library values are:
</p>
<dl>
<dt><b><u>*LIBL</u></b></dt>
<dd>All libraries in the library list for the current thread are searched until the first match is found.
</dd>
</dl>
<dl>
<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, the QGPL library is used.
</dd>
<dt><b><i>library-name</i></b></dt>
<dd>Specify the name of the library where the file is located.
</dd>
</dl>
<p>The possible value is:
</p>
<dl>
<dt><b><i>file-name</i></b></dt>
<dd>Specify the name of the output file.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#DSPRMTDFN.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="DSPRMTDFN.OUTMBR"></a>
<h3>Output member options (OUTMBR)</h3>
<p>Specifies the name of the database file member to which the output is directed.
</p>
<p>The possible <b>member to receive output</b> values are:
</p>
<dl>
<dt><b><u>*FIRST</u></b></dt>
<dd>The first member in the file receives the output. If OUTMBR(*FIRST) is specified and the member 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 file member that receives the output. If OUTMBR(member-name) is specified and the member does not exist, the system creates it.
</dd>
</dl>
<p>The possible <b>operation to perform on member</b> values are:
</p>
<dl>
<dt><b><u>*REPLACE</u></b></dt>
<dd>The output data replaces existing records in the specified member.
</dd>
<dt><b>*ADD</b></dt>
<dd>The output data is added after existing records in the specified member.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#DSPRMTDFN.Top_Of_Page">Top</a></td></tr>
</table>
<hr size="2" width="100%">
<div><h3><a name="DSPRMTDFN.COMMAND.EXAMPLES">Examples</a> </h3>
<p><b>Example 1: Displaying a Specific Remote Definition</b>
</p>
<p>
<pre>
DSPRMTDFN SYSTEM(RCHAS1)
</pre>
</p>
<p>This command displays the current attributes for remote system RCHAS1.
</p>
<p><b>Example 2: Writing a Definition to an Output File</b>
</p>
<p>
<pre>
DSPRMTDFN SYSTEM(*ALL) OUTPUT(*OUTFILE) OUTFILE(RMTDFNOUT)
</pre>
</p>
<p>This command writes the current attributes for all defined remote systems to the output file RMTDFNOUT.
</p>
</div>
<table width="100%">
<tr><td align="right"><a href="#DSPRMTDFN.Top_Of_Page">Top</a></td></tr>
</table>
<hr size="2" width="100%">
<div><h3><a name="DSPRMTDFN.ERROR.MESSAGES">Error messages</a> </h3>
<p><b><u>*ESCAPE Messages</u></b>
</p>
<dl>
<dt><b>CPF6A50</b></dt>
<dd>Error was found during display file or printer file operation.
</dd>
<dt><b>CPF6DCA</b></dt>
<dd>SYSTEM parameter cannot be local system.
</dd>
<dt><b>CPF6DCC</b></dt>
<dd>Remote definition for system &amp;1 &amp;2 not found.
</dd>
<dt><b>CPF9860</b></dt>
<dd>Error occurred during output file processing.
</dd>
<dt><b>CPF9899</b></dt>
<dd>Error occurred during processing of command.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#DSPRMTDFN.Top_Of_Page">Top</a></td></tr>
</table>
</body>
</html>