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

316 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>Print Private Authorities (PRTPVTAUT)</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="PRTPVTAUT.Top_Of_Page"></a>
<h2>Print Private Authorities (PRTPVTAUT)</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="#PRTPVTAUT.PARAMETERS.TABLE">Parameters</a><br>
<a href="#PRTPVTAUT.COMMAND.EXAMPLES">Examples</a><br>
<a href="#PRTPVTAUT.ERROR.MESSAGES">Error messages</a></td>
</tr>
</table>
<div> <a name="PRTPVTAUT"></a>
<p>The Print Private Authority (PRTPVTAUT) command allows you to print a report of all the private authorities for objects of a specified type in a specified library, folder or directory. The report will list all objects of the specified type and the users that are authorized to the object. This is a way to check for different sources of authority to objects.
</p>
<p>This command will print three reports for the selected objects. The first report (Full Report) will contain all of the private authorities for each of the selected objects.
</p>
<p>The second report (Changed Report) will contain additions/changes to the private authorities to the selected objects if the PRTPVTAUT command was previously run for the specified objects in the specified library or folder. Any new objects of the selected type, new authorities to existing objects, or changes to existing authorities to the existing objects will be listed in the 'Changed Report'. If the PRTPVTAUT command was not previously run for the specified objects in the specified library or folder, there will be no 'Changed Report'. If the command has been previously run but no changes have been made to the authorities on the objects, then the 'Changed Report' will be printed but there will be no objects listed.
</p>
<p>The third report (Deleted Report) will contain any deletions of privately authorized users from the specified objects since the PRTPVTAUT command was previously run. Any objects that were deleted or any users that were removed as privately authorized users will be listed in the 'Deleted Report'. If the PRTPVTAUT command was not previously run, there will be no 'Deleted Report'. If the command has been previously run but no delete operations have been done to the objects, then the 'Deleted Report' will be printed but there will be no objects listed.
</p>
<p>The reports will contain the following information:
</p>
<ul>
<li>The object type specified on the command (if object type is not *AUTL).
</li>
<li>The date and time the report was last run (not shown on the Full Report).
</li>
<li>The name of the library specified on the command (if object type is not *AUTL, *BLKSF, *DIR, *DOC, *FLR, *SOCKET, *STMF, or *SYMLNK).
</li>
<li>The library's *PUBLIC authority (if object type is not *AUTL, *BLKSF, *DIR, *DOC, *FLR, *SOCKET, *STMF, or *SYMLNK).
</li>
<li>The name of the folder the documents or folder are in (if object type is *DOC or *FLR).
</li>
<li>The name of the directory the objects are in (if object type is *BLKSF, *DIR, *SOCKET, *STMF, *SYMLNK).
</li>
<li>The directory's *PUBLIC authority (if object type is *BLKSF, *DIR, *SOCKET, *STMF, *SYMLNK).
</li>
<li>An entry for each user that has an authority to the objects in the list. Each entry contains the following information:
<ul>
<li>The name of the object (only shown for the first user).
</li>
<li>The owner of the object (only shown for the first user).
</li>
<li>The primary group of the object (only shown for the first user).
</li>
<li>The name of the authorization list securing the object (only shown for the first user if object type is not *AUTL).
</li>
<li>The sensitivity level of the document or folder (if object type is *DOC or *FLR, only shown for the first user).
</li>
<li>The name of the user authorized to the object.
</li>
<li>The special value for the user's authority to the object (e.g. *ALL or *CHANGE).
</li>
<li>An indicator for the individual authorities that the user has to the object ('X' or ' ') (if object type is not *DOC or *FLR).
</li>
</ul>
</li>
</ul>
<p>The file QPVXXXXXXX (where 'XXXXXXX' is the object type specified on the command) in library QUSRSYS contains information from the last time the PRTPVTAUT command was run. If object type is not *BLKSF, *DIR, *DOC, *FLR, *SOCKET, *STMF, or *SYMLNK there is a member within the file, with the same name as the library, for each library that has been previously specified on the command. For object types that don't require a library to be specified (e.g. *USRPRF), the library name is QSYS. System file QAOBJAUT in library QSYS with format name of QSYDSAUT is the model file for the file.
</p>
<p>If the object type is *FLR, the first member will contain the information from the previous time *FLR was specified on the command. System file QASECDLO in library QSYS with format name of QSECDLO is the model file for the file.
</p>
<p>If the object type is *DOC, there is a member within the file for each folder that has been previously specified on the command. The member name will be the same as the system name of the folder. System file QASECDLO in library QSYS with format name of QSECDLO is the model file for the file.
</p>
<p>If the object type is *FILE and the AUTTYPE parameter value is *FIELD or *ALL, the Display Object Authority (DSPOBJAUT) command will be run for each file that has field level authorities associated with it. For each of these files, a spooled file by the name of QPOBJAUT will be created that contains all of the field level authority data for the file. There is no changed report support available for the field level authority data on a file.
</p>
<p>If the object type is *BLKSF, *DIR, *SOCKET, *STMF, or *SYMLNK, there is a member within the file for each directory that has previously been specified in the <b>Directory (DIR)</b> parameter. The member names are based on the order the directories are processed. The member naming convention is x000000001, x000000002, and so on. The first character in the member name will either be N or Y. This character indicates if the subdirectories were searched when the data was gathered. N indicates the subdirectories were not searched, Y indicates they were searched. Once a member name has been assigned to a directory, the numeric portion with the appropriate prefix is used for all of the object types listed above. The system file QASECDIR in library QSYS with format name of QSECDIR is the model file for the file.
</p>
<p>
<b>Note: </b>The file QASECGFIPV in library QUSRSYS contains the file ID values of every directory that has been processed and the Nxxxxxxxxx member name that has been assigned to it. The system file QASECGFI in library QSYS with format name of QSECGFI is the model file for QASECGFIPV.
</p>
<p><b>Restriction:</b> You must have all object (*ALLOBJ) or audit (*AUDIT) special authority to run this command.
</p>
</div>
<table width="100%">
<tr><td align="right"><a href="#PRTPVTAUT.Top_Of_Page">Top</a></td></tr>
</table>
<hr size="2" width="100%">
<div>
<h3><a name="PRTPVTAUT.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="#PRTPVTAUT.OBJTYPE"><b>OBJTYPE</b></a></td>
<td valign="top">Object type</td>
<td valign="top">*ALRTBL, *AUTL, *BLKSF, *BNDDIR, *CFGL, *CHRSF, *CHTFMT, *CLD, *CLS, *CMD, *CNNL, *COSD, *CRG, *CRQD, *CSI, *CSPMAP, *CSPTBL, *CTLD, *DEVD, *DIR, *DOC, *DTAARA, *DTADCT, *DTAQ, *EDTD, *EXITRG, *FCT, *FIFO, *FILE, *FLR, *FNTRSC, *FNTTBL, *FORMDF, *FTR, *GSS, *IGCDCT, *IGCSRT, *IGCTBL, *IMGCLG, *IPXD, *JOBD, *JOBQ, *JOBSCD, *JRN, *JRNRCV, *LIB, *LIND, *LOCALE, *M36, *M36CFG, *MEDDFN, *MENU, *MGTCOL, *MODD, *MODULE, *MSGF, *MSGQ, *NODGRP, *NODL, *NTBD, *NWID, *NWSCFG, *NWSD, *OUTQ, *OVL, *PAGDFN, *PAGSEG, *PDFMAP, *PDG, *PGM, *PNLGRP, *PRDAVL, *PRDDFN, *PRDLOD, *PSFCFG, *QMFORM, *QMQRY, *QRYDFN, *RCT, *SBSD, *SCHIDX, *SOCKET, *SPADCT, *SQLPKG, *SQLUDT, *SRVPGM, *SSND, *STMF, *SVRSTG, *SYMLNK, *S36, *TBL, *TIMZON, *USRIDX, *USRPRF, *USRQ, *USRSPC, *VLDL, *WSCST</td>
<td valign="top">Required, Positional 1</td>
</tr>
<tr>
<td valign="top"><a href="#PRTPVTAUT.CHGRPTONLY"><b>CHGRPTONLY</b></a></td>
<td valign="top">Changed report only</td>
<td valign="top"><b><u>*NO</u></b>, *YES</td>
<td valign="top">Optional, Positional 2</td>
</tr>
<tr>
<td valign="top"><a href="#PRTPVTAUT.LIB"><b>LIB</b></a></td>
<td valign="top">Library</td>
<td valign="top"><i>Name</i></td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top"><a href="#PRTPVTAUT.AUTTYPE"><b>AUTTYPE</b></a></td>
<td valign="top">Authority type</td>
<td valign="top"><b><u>*OBJECT</u></b>, *FIELD, *ALL</td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top"><a href="#PRTPVTAUT.FLR"><b>FLR</b></a></td>
<td valign="top">Folder</td>
<td valign="top"><i>Character value</i></td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top"><a href="#PRTPVTAUT.AUTLOBJ"><b>AUTLOBJ</b></a></td>
<td valign="top">Print AUTL objects</td>
<td valign="top"><b><u>*NO</u></b>, *YES</td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top"><a href="#PRTPVTAUT.DIR"><b>DIR</b></a></td>
<td valign="top">Directory</td>
<td valign="top"><i>Path name</i></td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top"><a href="#PRTPVTAUT.SCHSUBDIR"><b>SCHSUBDIR</b></a></td>
<td valign="top">Search subdirectory</td>
<td valign="top"><b><u>*NO</u></b>, *YES</td>
<td valign="top">Optional</td>
</tr>
</table>
<table width="100%">
<tr><td align="right"><a href="#PRTPVTAUT.Top_Of_Page">Top</a></td></tr>
</table>
</div>
<div> <a name="PRTPVTAUT.OBJTYPE"></a>
<h3>Object type (OBJTYPE)</h3>
<p>This is a required parameter.
</p>
<p>The type of object to search for. For a complete list of object types, press the F4 key when prompting this parameter.
</p>
<dl>
<dt><b><i>object-type</i></b></dt>
<dd>The type of object to be processed.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#PRTPVTAUT.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="PRTPVTAUT.CHGRPTONLY"></a>
<h3>Changed report only (CHGRPTONLY)</h3>
<p>Specifies whether just the changed reports should be printed.
</p>
<dl>
<dt><b><u>*NO</u></b></dt>
<dd>The full and changed reports are printed.
</dd>
<dt><b>*YES</b></dt>
<dd>Only the changed report and the deleted reports are printed.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#PRTPVTAUT.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="PRTPVTAUT.LIB"></a>
<h3>Library (LIB)</h3>
<p>This is a required parameter for all object types except *AUTL, *BLKSF, *CFGL, *CNNL, *COSD, *CTLD, *DEVD, *DIR, *DOC, *FLR, *LIB, *LIND, *MODD, *NWID, *NWSD, *SOCKET, *STMF, *SYMLNK, and *USRPRF.
</p>
<p>The name of the library to search for objects to be included in the private authority report.
</p>
</div>
<table width="100%">
<tr><td align="right"><a href="#PRTPVTAUT.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="PRTPVTAUT.AUTTYPE"></a>
<h3>Authority type (AUTTYPE)</h3>
<p>Specifies whether object level authority, field level authority, or both object level and field level authority reports are generated. Field level authority information only applies to *FILE objects.
</p>
<dl>
<dt><b><u>*OBJECT</u></b></dt>
<dd>Object level authority reports are generated for the specified objects.
</dd>
<dt><b>*FIELD</b></dt>
<dd>For each data base file that has field level authorities a field level authority report is generated.
<p>This value is only valid if *FILE is specified for the <b>Object type (OBJTYPE)</b> parameter.
</p>
</dd>
<dt><b>*ALL</b></dt>
<dd>For each data base file that has field level authorities, a field level authority report is generated. Also, the object level authority reports for all the files in the specified library are generated.
<p>This value is only valid if *FILE is specified for the <b>Object type (OBJTYPE)</b> parameter.
</p>
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#PRTPVTAUT.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="PRTPVTAUT.FLR"></a>
<h3>Folder (FLR)</h3>
<p>This is a required parameter if *DOC is specified for the <b>Object type (OBJTYPE)</b> parameter.
</p>
<p>The name of the folder to search for documents to be included in the private authority report.
</p>
<dl>
<dt><b><i>folder-name</i></b></dt>
<dd>The name of the folder to be searched.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#PRTPVTAUT.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="PRTPVTAUT.AUTLOBJ"></a>
<h3>Print AUTL objects (AUTLOBJ)</h3>
<p>Specifies whether the Display Authorization List Objects (DSPAUTLOBJ) command will be run for each of the authorization lists on the system. DSPAUTLOBJ provides a list of all the objects that are secured by a specific authorization list. This parameter is only used if the object type is *AUTL. It is ignored for all other object types.
</p>
<dl>
<dt><b><u>*NO</u></b></dt>
<dd>The DSPAUTLOBJ command will not be run for each of the authorization lists on the system.
</dd>
<dt><b>*YES</b></dt>
<dd>The DSPAUTLOBJ command will be run for each of the authorization lists on the system. The output for the command will be sent to the same output queue as the authorization list report.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#PRTPVTAUT.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="PRTPVTAUT.DIR"></a>
<h3>Directory (DIR)</h3>
<p>This is a required parameter if *BLKSF, *DIR, *SOCKET, *STMF, or *SYMLNK is specified for the <b>Object type (OBJTYPE)</b> parameter.
</p>
<p>The name of the directory to search for objects to be included in the private authority report. Only local objects in the Root, QOpenSys, and User-Defined file systems are supported.
</p>
<dl>
<dt><b><i>directory-name</i></b></dt>
<dd>The name of the directory to be searched.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#PRTPVTAUT.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="PRTPVTAUT.SCHSUBDIR"></a>
<h3>Search subdirectory (SCHSUBDIR)</h3>
<p>Specifies whether to search the subdirectories for objects to be included in the private authority report.
</p>
<p>
<b>Note: </b>This parameter is only used when OBJTYPE is *BLKSF, *DIR, *SOCKET, *STMF, or *SYMLNK.
</p>
<dl>
<dt><b><u>*NO</u></b></dt>
<dd>The subdirectories are not searched.
</dd>
<dt><b>*YES</b></dt>
<dd>The subdirectories are searched.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#PRTPVTAUT.Top_Of_Page">Top</a></td></tr>
</table>
<hr size="2" width="100%">
<div><h3><a name="PRTPVTAUT.COMMAND.EXAMPLES">Examples</a> </h3>
<p>
<pre>
PRTPVTAUT OBJTYPE(*FILE) LIB(PAYROLLLIB)
</pre>
</p>
<p>This command prints the full, changed, and deleted reports for all file objects in the library PAYROLLLIB.
</p>
</div>
<table width="100%">
<tr><td align="right"><a href="#PRTPVTAUT.Top_Of_Page">Top</a></td></tr>
</table>
<hr size="2" width="100%">
<div><h3><a name="PRTPVTAUT.ERROR.MESSAGES">Error messages</a> </h3>
<p><b><u>*ESCAPE Messages</u></b>
</p>
<dl>
<dt><b>CPFB304</b></dt>
<dd>User does not have required special authorities.
</dd>
<dt><b>CPFB307</b></dt>
<dd>Command &amp;1 in use in another job.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#PRTPVTAUT.Top_Of_Page">Top</a></td></tr>
</table>
</body>
</html>