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

365 lines
13 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 Nickname (DSPNCK)</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="DSPNCK.Top_Of_Page"></a>
<h2>Display Nickname (DSPNCK)</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="#DSPNCK.PARAMETERS.TABLE">Parameters</a><br>
<a href="#DSPNCK.COMMAND.EXAMPLES">Examples</a><br>
<a href="#DSPNCK.ERROR.MESSAGES">Error messages</a></td>
</tr>
</table>
<div> <a name="DSPNCK"></a>
<p>The Display Nickname (DSPNCK) command is used to display, print, or create a database output file for nicknames in the system distribution directory.
</p>
<p>A <b>nickname</b> is a short version of either a directory entry or a distribution list name. More information about nicknames is in the SNA Distribution Services book, SC41-5410.
</p>
<p>Output from this command is directed as follows:
</p>
<ul>
<li>For displayed output, the default is to display a list of all nicknames. When a nickname is specified, detailed information on that nickname only is displayed.
</li>
<li>For printed or database file output, the default is to write all nicknames to which the user has access. When a nickname is specified, detailed information on that nickname only is written to the output file.
</li>
</ul>
<p><b>Restriction:</b> You must be the owner to display a private nickname. No special authority is needed to display a private nickname that you own or a public nickname.
</p>
</div>
<table width="100%">
<tr><td align="right"><a href="#DSPNCK.Top_Of_Page">Top</a></td></tr>
</table>
<hr size="2" width="100%">
<div>
<h3><a name="DSPNCK.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="#DSPNCK.NCK"><b>NCK</b></a></td>
<td valign="top">Nickname</td>
<td valign="top"><i>Element list</i></td>
<td valign="top" rowspan="3">Optional, Positional 1</td>
</tr>
<tr>
<td valign="top">Element 1: Nickname</td>
<td valign="top">
<i>Character value</i>, <b><u>*ALL</u></b></td>
</tr>
<tr>
<td valign="top">Element 2: Access</td>
<td valign="top">
<b><u>*PRV</u></b>, *ALL, *PRIVATE, *PUBLIC</td>
</tr>
<tr>
<td valign="top"><a href="#DSPNCK.TYPE"><b>TYPE</b></a></td>
<td valign="top">Type of nickname</td>
<td valign="top"><b><u>*ALL</u></b>, *USER, *LIST</td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top"><a href="#DSPNCK.OWNER"><b>OWNER</b></a></td>
<td valign="top">Owner</td>
<td valign="top"><i>Name</i>, <b><u>*ALL</u></b>, *CURRENT</td>
<td valign="top">Optional, Positional 2</td>
</tr>
<tr>
<td valign="top"><a href="#DSPNCK.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 3</td>
</tr>
<tr>
<td valign="top" rowspan="3"><a href="#DSPNCK.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, Positional 4</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="#DSPNCK.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="#DSPNCK.Top_Of_Page">Top</a></td></tr>
</table>
</div>
<div> <a name="DSPNCK.NCK"></a>
<h3>Nickname (NCK)</h3>
<p>Specifies the nicknames to display, print, or write to a database file.
</p>
<p>The possible nickname values are:
</p>
<dl>
<dt><b><u>*ALL</u></b></dt>
<dd>All nicknames in the system distribution directory are directed for output.
</dd>
<dt><b><i>nickname</i></b></dt>
<dd>Specify the nickname for which detailed information is to be directed for output.
</dd>
</dl>
<p>The possible nickname access values are:
</p>
<dl>
<dt><b><u>*PRV</u></b></dt>
<dd>The last access specified by the current user for displaying, selecting, or working with nicknames is used.
</dd>
<dt><b>*ALL</b></dt>
<dd>All of the nicknames to which you have access are directed for output. This includes the private nicknames that you own and all of the public nicknames in the system distribution directory.
</dd>
<dt><b>*PRIVATE</b></dt>
<dd>The private nicknames that you own are directed for output.
</dd>
<dt><b>*PUBLIC</b></dt>
<dd>All of the public nicknames in the system distribution directory are directed for output.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#DSPNCK.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="DSPNCK.TYPE"></a>
<h3>Type of nickname (TYPE)</h3>
<p>Specifies the type of nicknames (user or list) to display, print, or write to a database file.
</p>
<dl>
<dt><b><u>*ALL</u></b></dt>
<dd>All nicknames of both the user and list types are directed for output.
</dd>
<dt><b>*USER</b></dt>
<dd>The user nicknames are directed for output.
</dd>
<dt><b>*LIST</b></dt>
<dd>The list nicknames are directed for output.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#DSPNCK.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="DSPNCK.OWNER"></a>
<h3>Owner (OWNER)</h3>
<p>Specifies the owner of the nicknames to display, print, or write to a database file.
</p>
<dl>
<dt><b><u>*ALL</u></b></dt>
<dd>The nicknames owned by all user profiles are directed for output. This does not include the private nicknames to which the user does not have access.
</dd>
<dt><b>*CURRENT</b></dt>
<dd>The nicknames owned by the current user are directed for output.
</dd>
<dt><b><i>user-profile-name</i></b></dt>
<dd>Specify the user profile of the owner whose nicknames are to be directed for output.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#DSPNCK.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="DSPNCK.OUTPUT"></a>
<h3>Output (OUTPUT)</h3>
<p>Specifies whether the output from the command is shown at the requesting work station, printed with the job's spooled output or written to a database file.
</p>
<dl>
<dt><b><u>*</u></b></dt>
<dd>The output requested by an interactive job is shown on the display. If the command is run as part of a batch job, the output 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 OUTFILE parameter.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#DSPNCK.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="DSPNCK.OUTFILE"></a>
<h3>File to receive output (OUTFILE)</h3>
<p>Specifies the name of the database file to which output is to be directed. If the file does not exist, this command creates the database file in the specified library. Text for the created file is "OUTFILE for DSPNCK" and the public authority is *EXCLUDE.
</p>
<p>
<b>Note: </b>This parameter is required when OUTPUT(*OUTFILE) is specified.
</p>
<p>The name of the database file can be qualified by one of the following library values:
</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 searched. 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 to be searched.
</dd>
</dl>
<p>The possible value is:
</p>
<dl>
<dt><b><i>database-file-name</i></b></dt>
<dd>Specify the name of the database file to receive the output. If the file does not exist, it is created in the specified library. If the file does not exist and no library is specified, or if the file is qualified with *LIBL and the system cannot find the file, the database file is created in the user default library. The user default library is specified in the user profile of the current user. If no default library is specified in the user profile, the QGPL library is used.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#DSPNCK.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="DSPNCK.OUTMBR"></a>
<h3>Output member options (OUTMBR)</h3>
<p>Specifies the name of the database file member to which the output is directed. If a member already exists, the system uses the second element of this parameter to determine whether the member is cleared before the new records are added. If the member does not exist and a member name is not specified, the system creates a member with the name of the output file specified on the OUTFILE parameter. If an output file member name is specified, but the member does not exist, the system creates it.
</p>
<p>The possible Member to Receive Output 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 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 Action on Member values are:
</p>
<dl>
<dt><b><u>*REPLACE</u></b></dt>
<dd>The system clears the existing member and adds the new records.
</dd>
<dt><b>*ADD</b></dt>
<dd>The system adds the new records to the end of the existing records.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#DSPNCK.Top_Of_Page">Top</a></td></tr>
</table>
<hr size="2" width="100%">
<div><h3><a name="DSPNCK.COMMAND.EXAMPLES">Examples</a> </h3>
<p><b>Example 1: Displaying a List of Nicknames</b>
</p>
<p>
<pre>
DSPNCK NCK(*ALL *PRIVATE)
</pre>
</p>
<p>This command shows a list of private nicknames to the owner of the nicknames. The owner can request to show or print additional information for the nicknames shown.
</p>
<p><b>Example 2: Printing a List of Nicknames</b>
</p>
<p>
<pre>
DSPNCK NCK(MANAGER *PRIVATE) OUTPUT(*PRINT)
</pre>
</p>
<p>This command prints detailed information on the user's private nickname MANAGER.
</p>
<p><b>Example 3: Directing Nicknames to a Database File</b>
</p>
<p>
<pre>
DSPNCK NCK(*ALL *PUBLIC) OUTPUT(*OUTFILE) OUTFILE(ALLNICKS)
OUTMBR(*FIRST *REPLACE)
</pre>
</p>
<p>This command directs one record for each public nickname in the directory to the database file ALLNICKS. If this file is not found in the library list (the default library qualifier), it is created in the user's default library or in the QGPL library if no user default library is specified.
</p>
<p><b>Example 4: Directing Nicknames for an Owner to a Database File</b>
</p>
<p>
<pre>
DSPNCK NCK(*ALL *PUBLIC) OWNER(CDJONES) OUTPUT(*OUTFILE)
OUTFILE(NICKNAME/CDJONES)
OUTMBR(*FIRST *REPLACE)
</pre>
</p>
<p>This command directs one record for each public nickname owned by the user whose user profile is CDJONES to the database file CDJONES in the library NICKNAME. If this file is not found in the library NICKNAME, it is created.
</p>
</div>
<table width="100%">
<tr><td align="right"><a href="#DSPNCK.Top_Of_Page">Top</a></td></tr>
</table>
<hr size="2" width="100%">
<div><h3><a name="DSPNCK.ERROR.MESSAGES">Error messages</a> </h3>
<p><b><u>*ESCAPE Messages</u></b>
</p>
<dl>
<dt><b>CPF9A89</b></dt>
<dd>Nickname function not successful.
</dd>
<dt><b>CPF9009</b></dt>
<dd>System requires file &amp;1 in &amp;2 be journaled.
</dd>
<dt><b>CPF9820</b></dt>
<dd>Not authorized to use library &amp;1.
</dd>
<dt><b>CPF9822</b></dt>
<dd>Not authorized to file &amp;1 in library &amp;2.
</dd>
<dt><b>CPF9838</b></dt>
<dd>User profile storage limit exceeded.
</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>CPF9850</b></dt>
<dd>Override of printer file &amp;1 not allowed.
</dd>
<dt><b>CPF9851</b></dt>
<dd>Overflow value for file &amp;1 in &amp;2 too small.
</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="#DSPNCK.Top_Of_Page">Top</a></td></tr>
</table>
</body>
</html>