334 lines
13 KiB
HTML
334 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 User Profile (DSPUSRPRF)</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="DSPUSRPRF.Top_Of_Page"></a>
|
|
<h2>Display User Profile (DSPUSRPRF)</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="#DSPUSRPRF.PARAMETERS.TABLE">Parameters</a><br>
|
|
<a href="#DSPUSRPRF.COMMAND.EXAMPLES">Examples</a><br>
|
|
<a href="#DSPUSRPRF.ERROR.MESSAGES">Error messages</a></td>
|
|
</tr>
|
|
</table>
|
|
|
|
<div> <a name="DSPUSRPRF"></a>
|
|
<p>The Display User Profile (DSPUSRPRF) command displays the contents of a user profile. The user profile contains the user's operational limits for system resources. This includes the names of the objects, commands, and devices that the user has specific authority to use and the names of the objects that the user owns, and that the user is the primary group for.
|
|
</p>
|
|
<p>Objects owned by the user profile are not shown on the *CMDAUT, *DEVAUT, *OBJAUT, or *OBJPGP displays.
|
|
</p>
|
|
<p>This command does not show the password, nor does it show information about objects authorized for public use. The document password is not shown on the *BASIC display or on any CL command output. Any user on the system can be authorized to use the DSPUSRPRF command, but the requesting user must have read (*READ) authority for the user profile being displayed.
|
|
</p>
|
|
<p>The DSPUSRPRF function may be a long-running function, depending upon the number of objects the user profile owns and is authorized to use.
|
|
</p>
|
|
<p><b>Restrictions:</b> The user name can be specified as USRPRF(*ALL) or USRPRF(generic-name) only when TYPE(*BASIC) and OUTPUT(*OUTFILE) are specified.
|
|
</p>
|
|
</div>
|
|
<table width="100%">
|
|
<tr><td align="right"><a href="#DSPUSRPRF.Top_Of_Page">Top</a></td></tr>
|
|
</table>
|
|
<hr size="2" width="100%">
|
|
|
|
<div>
|
|
<h3><a name="DSPUSRPRF.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="#DSPUSRPRF.USRPRF"><b>USRPRF</b></a></td>
|
|
<td valign="top">User profile</td>
|
|
<td valign="top"><i>Generic name, name</i>, *ALL</td>
|
|
<td valign="top">Required, Positional 1</td>
|
|
</tr>
|
|
<tr>
|
|
<td valign="top"><a href="#DSPUSRPRF.TYPE"><b>TYPE</b></a></td>
|
|
<td valign="top">Type of information</td>
|
|
<td valign="top"><b><u>*BASIC</u></b>, *ALL, *CMDAUT, *DEVAUT, *GRPMBR, *OBJAUT, *OBJOWN, *OBJPGP</td>
|
|
<td valign="top">Optional, Positional 2</td>
|
|
</tr>
|
|
<tr>
|
|
<td valign="top"><a href="#DSPUSRPRF.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</td>
|
|
</tr>
|
|
<tr>
|
|
<td valign="top" rowspan="3"><a href="#DSPUSRPRF.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="#DSPUSRPRF.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="#DSPUSRPRF.Top_Of_Page">Top</a></td></tr>
|
|
</table>
|
|
</div>
|
|
<div> <a name="DSPUSRPRF.USRPRF"></a>
|
|
<h3>User profile (USRPRF)</h3>
|
|
<p>Specifies the user profiles to be displayed.
|
|
</p>
|
|
<p>This is a required parameter.
|
|
</p>
|
|
<dl>
|
|
<dt><b>*ALL</b></dt>
|
|
<dd>All user profiles are shown.
|
|
</dd>
|
|
<dt><b><i>generic-name</i></b></dt>
|
|
<dd>Specify the generic name of the user profiles to be shown. A generic name is a character string that contains one or more characters followed by an asterisk (*). If a generic name is specified, all user profiles that have names with the same prefix as the generic name are shown.
|
|
</dd>
|
|
<dt><b><i>name</i></b></dt>
|
|
<dd>Specify the name of the user profile to be shown.
|
|
</dd>
|
|
</dl>
|
|
<p>
|
|
<b>Note: </b>*ALL or a generic name can only be specified when TYPE(*BASIC) and OUTPUT(*OUTFILE) are specified.
|
|
</p>
|
|
</div>
|
|
<table width="100%">
|
|
<tr><td align="right"><a href="#DSPUSRPRF.Top_Of_Page">Top</a></td></tr>
|
|
</table>
|
|
<div> <a name="DSPUSRPRF.TYPE"></a>
|
|
<h3>Type of information (TYPE)</h3>
|
|
<p>Specifies the types of information that can be displayed. All, or one, of the following can be displayed:
|
|
</p>
|
|
<ul>
|
|
<li>The basic portion of the user profile that describes the user
|
|
</li>
|
|
<li>Commands for which the user profile has specific authority
|
|
</li>
|
|
<li>Devices for which the user profile has specific authority
|
|
</li>
|
|
<li>All objects (including commands and devices) for which the user has some specific authority and the authorities assigned with those objects
|
|
</li>
|
|
<li>Objects that are owned by the user
|
|
</li>
|
|
<li>Objects that the user is the primary group for.
|
|
</li>
|
|
<li>Members of the group, if the user profile is a group profile
|
|
</li>
|
|
</ul>
|
|
<dl>
|
|
<dt><b><u>*BASIC</u></b></dt>
|
|
<dd>All parameters as defined in the user profile, are displayed.
|
|
</dd>
|
|
<dt><b>*ALL</b></dt>
|
|
<dd>All of the information in the user profile is displayed.
|
|
</dd>
|
|
<dt><b>*CMDAUT</b></dt>
|
|
<dd>Displays the control language commands to which the user has specific authority.
|
|
</dd>
|
|
<dt><b>*DEVAUT</b></dt>
|
|
<dd>Displays the system devices to which the user has specific authority.
|
|
</dd>
|
|
<dt><b>*OBJAUT</b></dt>
|
|
<dd>Displays the names of the objects (except those authorized for public use) to which the user has specific authority, the user's authority for those objects, and the object types.
|
|
</dd>
|
|
<dt><b>*OBJOWN</b></dt>
|
|
<dd>Displays the total number of objects this user owns, the object names, the object types, and the libraries in which the objects reside. Also indicates if the object is an authority holder.
|
|
</dd>
|
|
<dt><b>*OBJPGP</b></dt>
|
|
<dd>Displays the total number of objects the user is the primary group for, the object names, the type, the library the object resides in, and the primary group authority. Also indicates if the object is an authority holder.
|
|
</dd>
|
|
<dt><b>*GRPMBR</b></dt>
|
|
<dd>Displays the members of a group. This display is available only if the user profile being displayed is a group profile.
|
|
</dd>
|
|
</dl>
|
|
</div>
|
|
<table width="100%">
|
|
<tr><td align="right"><a href="#DSPUSRPRF.Top_Of_Page">Top</a></td></tr>
|
|
</table>
|
|
<div> <a name="DSPUSRPRF.OUTPUT"></a>
|
|
<h3>Output (OUTPUT)</h3>
|
|
<p>Specifies where the output from the command is sent.
|
|
</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>
|
|
<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>
|
|
</div>
|
|
<table width="100%">
|
|
<tr><td align="right"><a href="#DSPUSRPRF.Top_Of_Page">Top</a></td></tr>
|
|
</table>
|
|
<div> <a name="DSPUSRPRF.OUTFILE"></a>
|
|
<h3>File to receive output (OUTFILE)</h3>
|
|
<p>Specifies 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. If the file is created, the public authority for the file is the same as the create authority specified for the library in which the file is created. Use the Display Library Description (DSPLIBD) command to show the library's create authority.
|
|
</p>
|
|
<p><b>Qualifier 1: File to receive output</b>
|
|
</p>
|
|
<dl>
|
|
<dt><b><i>name</i></b></dt>
|
|
<dd>Specify the name of the database file to which the command output is directed.
|
|
</dd>
|
|
</dl>
|
|
<p><b>Qualifier 2: Library</b>
|
|
</p>
|
|
<dl>
|
|
<dt><b><u>*LIBL</u></b></dt>
|
|
<dd>The library list is used to locate the file. If the file is not found, one is created in the current library. If no current library exists, the file will be created in the QGPL library.
|
|
</dd>
|
|
<dt><b>*CURLIB</b></dt>
|
|
<dd>The current library for the thread is used to locate the file. If no library is specified as the current library for the thread, the QGPL library is used.
|
|
</dd>
|
|
</dl>
|
|
<dl>
|
|
<dt><b><i>name</i></b></dt>
|
|
<dd>Specify the name of the library to be searched.
|
|
</dd>
|
|
</dl>
|
|
<p>
|
|
<b>Note: </b>If a new file is created and *BASIC is specified on the <b>Type of information (TYPE)</b> TYPE parameter, the system uses QADSPUPB in QSYS with a format name QSYDSUPB as a model.
|
|
</p>
|
|
<p>If a new file is created and *OBJAUT is specified on the TYPE parameter, the system uses QADSPUPA in QSYS with a format name QSYDSUPA as a model.
|
|
</p>
|
|
<p>If a new file is created and *OBJOWN is specified on the TYPE parameter, the system uses QADSPUPO in QSYS with a format name QSYDSUPO as a model.
|
|
</p>
|
|
<p>If a new file is created and *OBJPGP is specified on the TYPE parameter, the system uses QADSPUPG in QSYS with a format name QSYDSUPG as a model.
|
|
</p>
|
|
</div>
|
|
<table width="100%">
|
|
<tr><td align="right"><a href="#DSPUSRPRF.Top_Of_Page">Top</a></td></tr>
|
|
</table>
|
|
<div> <a name="DSPUSRPRF.OUTMBR"></a>
|
|
<h3>Output member options (OUTMBR)</h3>
|
|
<p>Specifies the name of the database file member that receives the output of the command.
|
|
</p>
|
|
<p><b>Element 1: Member to receive output</b>
|
|
</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 for the <b>File to receive output (OUTFILE)</b> parameter. If the member already exists, you have the option to add new records to the end of the existing member or clear the member and then add the new records.
|
|
</dd>
|
|
</dl>
|
|
<dl>
|
|
<dt><b><i>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><b>Element 2: Replace or add records</b>
|
|
</p>
|
|
<dl>
|
|
<dt><b><u>*REPLACE</u></b></dt>
|
|
<dd>The system clears the existing member and adds the new records.
|
|
</dd>
|
|
</dl>
|
|
<dl>
|
|
<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="#DSPUSRPRF.Top_Of_Page">Top</a></td></tr>
|
|
</table>
|
|
<hr size="2" width="100%">
|
|
<div><h3><a name="DSPUSRPRF.COMMAND.EXAMPLES">Examples</a> </h3>
|
|
<p><b>Example 1: Displaying Basic Information</b>
|
|
</p>
|
|
<p>
|
|
<pre>
|
|
DSPUSRPRF USRPRF(THSMITH)
|
|
</pre>
|
|
</p>
|
|
<p>This command shows the basic portion of the user profile named THSMITH because TYPE(*BASIC) is assumed. The commands, devices, and objects that the user is authorized to use are not displayed. Because OUTPUT(*) is also assumed, the operational information is either displayed or printed, depending on where the command is submitted.
|
|
</p>
|
|
<p><b>Example 2: Printing a List of Objects</b>
|
|
</p>
|
|
<p>
|
|
<pre>
|
|
DSPUSRPRF USRPRF(RTJOHNSON) TYPE(*OBJOWN) OUTPUT(*PRINT)
|
|
</pre>
|
|
</p>
|
|
<p>This command causes the list of objects that are owned by the user named RTJOHNSON to be printed. The list contains the object names, object types, and the names of the libraries where the objects are located.
|
|
</p>
|
|
</div>
|
|
<table width="100%">
|
|
<tr><td align="right"><a href="#DSPUSRPRF.Top_Of_Page">Top</a></td></tr>
|
|
</table>
|
|
<hr size="2" width="100%">
|
|
<div><h3><a name="DSPUSRPRF.ERROR.MESSAGES">Error messages</a> </h3>
|
|
<p><b><u>*ESCAPE Messages</u></b>
|
|
</p>
|
|
<dl>
|
|
<dt><b>CPF22DF</b></dt>
|
|
<dd>Unable to process request for user profile &1.
|
|
</dd>
|
|
<dt><b>CPF22D8</b></dt>
|
|
<dd>Use of generic user profile name not correct.
|
|
</dd>
|
|
<dt><b>CPF22D9</b></dt>
|
|
<dd>No user profiles of specified name exist.
|
|
</dd>
|
|
<dt><b>CPF22EB</b></dt>
|
|
<dd>Unable to process request for user profile &1.
|
|
</dd>
|
|
<dt><b>CPF2204</b></dt>
|
|
<dd>User profile &1 not found.
|
|
</dd>
|
|
<dt><b>CPF2213</b></dt>
|
|
<dd>Not able to allocate user profile &1.
|
|
</dd>
|
|
<dt><b>CPF2217</b></dt>
|
|
<dd>Not authorized to user profile &1.
|
|
</dd>
|
|
<dt><b>CPF2257</b></dt>
|
|
<dd>User profile &1 not a group profile.
|
|
</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="#DSPUSRPRF.Top_Of_Page">Top</a></td></tr>
|
|
</table>
|
|
</body>
|
|
</html>
|