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

446 lines
17 KiB
HTML
Raw Normal View History

2024-04-02 14:02:31 +00:00
<!doctype html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head><META http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Retrieve DLO Authority (RTVDLOAUT)</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="RTVDLOAUT.Top_Of_Page"></a>
<h2>Retrieve DLO Authority (RTVDLOAUT)</h2>
<table width="100%">
<tr>
<td valign="top" align="left"><b>Where allowed to run: </b>Compiled CL program or interpreted REXX (*BPGM *IPGM *BREXX *IREXX)<br>
<b>Threadsafe: </b>No
</td>
<td valign="top" align="right">
<a href="#RTVDLOAUT.PARAMETERS.TABLE">Parameters</a><br>
<a href="#RTVDLOAUT.COMMAND.EXAMPLES">Examples</a><br>
<a href="#RTVDLOAUT.ERROR.MESSAGES">Error messages</a></td>
</tr>
</table>
<div> <a name="RTVDLOAUT"></a>
<p>The Retrieve Document Library Object Authority (RTVDLOAUT) command retrieves the authority assigned to a folder or filed document.
</p>
<p><b>Restrictions:</b>
</p>
<ul>
<li>A user must be in the system distribution directory entry to retrieve the various authorities.
</li>
<li>A user must have at least use (*USE) authority to the filed document or folder.
</li>
<li>A user with less than all (*ALL) authority to the filed document or folder will only be able to retrieve that user's authority or the owner.
</li>
<li>A user must have *ALL authority to the object, or all object (*ALLOBJ) special authority, or be the owner of the filed document or folder, to retrieve all the authorities.
</li>
<li>A user must have *ALLOBJ special authority to retrieve the *ROOT folder public authority.
</li>
</ul>
</div>
<table width="100%">
<tr><td align="right"><a href="#RTVDLOAUT.Top_Of_Page">Top</a></td></tr>
</table>
<hr size="2" width="100%">
<div>
<h3><a name="RTVDLOAUT.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="#RTVDLOAUT.DLO"><b>DLO</b></a></td>
<td valign="top">Document library object</td>
<td valign="top"><i>Character value</i>, *DOCID, *LADNTSP, *SYSOBJNAM, *ROOT</td>
<td valign="top">Required, Positional 1</td>
</tr>
<tr>
<td valign="top"><a href="#RTVDLOAUT.FLR"><b>FLR</b></a></td>
<td valign="top">Folder</td>
<td valign="top"><i>Character value</i>, <b><u>*NONE</u></b></td>
<td valign="top">Optional, Positional 2</td>
</tr>
<tr>
<td valign="top"><a href="#RTVDLOAUT.DOCID"><b>DOCID</b></a></td>
<td valign="top">Document identifier</td>
<td valign="top"><i>Character value</i>, <b><u>*NONE</u></b></td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top"><a href="#RTVDLOAUT.LADNTSP"><b>LADNTSP</b></a></td>
<td valign="top">LADN timestamp</td>
<td valign="top">0000000000000001-FFFFFFFFFFFFFFFF, <b><u>*NONE</u></b></td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top"><a href="#RTVDLOAUT.SYSOBJNAM"><b>SYSOBJNAM</b></a></td>
<td valign="top">System object name</td>
<td valign="top"><i>Name</i>, <b><u>*NONE</u></b></td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top"><a href="#RTVDLOAUT.STRUSRAUTE"><b>STRUSRAUTE</b></a></td>
<td valign="top">Starting user authority entry</td>
<td valign="top">1-99999, <b><u>1</u></b></td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top"><a href="#RTVDLOAUT.OWNER"><b>OWNER</b></a></td>
<td valign="top">CL var for OWNER (10)</td>
<td valign="top"><i>Character value</i></td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top"><a href="#RTVDLOAUT.AUTL"><b>AUTL</b></a></td>
<td valign="top">CL var for AUTL (10)</td>
<td valign="top"><i>Character value</i></td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top"><a href="#RTVDLOAUT.SENSITIV"><b>SENSITIV</b></a></td>
<td valign="top">CL var for SENSITIV (20)</td>
<td valign="top"><i>Character value</i></td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top"><a href="#RTVDLOAUT.PUBAUT"><b>PUBAUT</b></a></td>
<td valign="top">CL var for PUBAUT (10)</td>
<td valign="top"><i>Character value</i></td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top"><a href="#RTVDLOAUT.CHKOUTUSR"><b>CHKOUTUSR</b></a></td>
<td valign="top">CL var for CHKOUTUSR (32)</td>
<td valign="top"><i>Character value</i></td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top"><a href="#RTVDLOAUT.ACC"><b>ACC</b></a></td>
<td valign="top">CL var for ACC (220)</td>
<td valign="top"><i>Character value</i></td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top"><a href="#RTVDLOAUT.USRAUT"><b>USRAUT</b></a></td>
<td valign="top">CL var for USRAUT (1020)</td>
<td valign="top"><i>Character value</i></td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top"><a href="#RTVDLOAUT.GRPAUT"><b>GRPAUT</b></a></td>
<td valign="top">CL var for GRPAUT (340)</td>
<td valign="top"><i>Character value</i></td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top"><a href="#RTVDLOAUT.PGP"><b>PGP</b></a></td>
<td valign="top">CL var for PGP (10)</td>
<td valign="top"><i>Character value</i></td>
<td valign="top">Optional</td>
</tr>
</table>
<table width="100%">
<tr><td align="right"><a href="#RTVDLOAUT.Top_Of_Page">Top</a></td></tr>
</table>
</div>
<div> <a name="RTVDLOAUT.DLO"></a>
<h3>Document library object (DLO)</h3>
<p>Specifies the name of the document or folder for which authorities are retrieved.
</p>
<dl>
<dt><b>*ROOT</b></dt>
<dd>The root folder contains all first-level folders. If folder *ROOT is specified only public authority will be returned by PUBAUT parameter. No other authorities will be returned.
</dd>
<dt><b>*LADNTSP</b></dt>
<dd>The timestamp from the library-assigned document name (LADN) specified on the LADNTSP parameter is used to identify the document or folder.
</dd>
<dt><b>*SYSOBJNAM</b></dt>
<dd>The system object name specified on the SYSOBJNAM parameter is used to identify the document or folder.
</dd>
<dt><b><i>name</i></b></dt>
<dd>Specify the user-assigned name of the document or folder.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#RTVDLOAUT.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="RTVDLOAUT.FLR"></a>
<h3>Folder (FLR)</h3>
<p>Specifies the name of the folder where the object specified on the DLO parameter is located.
</p>
<dl>
<dt><b><u>*NONE</u></b></dt>
<dd>The name of folder that contains the object is not specified, the object is not contained in a folder, or the object is specified using the LADNTSP, or SYSOBJNAM parameter, or *ROOT was specified in the DLO parameter.
</dd>
<dt><b><i>name</i></b></dt>
<dd>Specify the name of the folder that contains the object.
<p>
<b>Note: </b>FLR(*NONE) must be specified if the object is a first-level folder.
</p>
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#RTVDLOAUT.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="RTVDLOAUT.DOCID"></a>
<h3>Document identifier (DOCID)</h3>
<p>Specifies the library-assigned name of the document or folder.
</p>
<dl>
<dt><b><u>*NONE</u></b></dt>
<dd>The object is not identified using its document identifier (DOCID)
</dd>
<dt><b><i>document-identifier</i></b></dt>
<dd>Specify the document identifier of the document or folder. The document identifier is 24 hexadecimal characters in length in the format YYYYMMDDHHMNSSHSSNSNSNSN, where:
<ul>
<li>YYYY = year
</li>
<li>MM = month
</li>
<li>DD = day
</li>
<li>HH = hour
</li>
<li>MN = minute
</li>
<li>SS = second
</li>
<li>HS = hundredths of a second
</li>
<li>SNSNSNSN = system name
</li>
</ul>
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#RTVDLOAUT.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="RTVDLOAUT.LADNTSP"></a>
<h3>LADN timestamp (LADNTSP)</h3>
<p>Specifies the LADN timestamp of the document or folder.
</p>
<dl>
<dt><b><u>*NONE</u></b></dt>
<dd>The object is not identified using its LADN timestamp.
</dd>
<dt><b><i>timestamp</i></b></dt>
<dd>Specify the LADN timestamp of the document or folder. The LADN timestamp is 16 hexadecimal characters in length in the format YYYYMMDDHHMNSSHS, where:
<ul>
<li>YYYY = year
</li>
<li>MM = month
</li>
<li>DD = day
</li>
<li>HH = hour
</li>
<li>MN = minute
</li>
<li>SS = second
</li>
<li>HS = hundredths of a second
</li>
</ul>
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#RTVDLOAUT.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="RTVDLOAUT.SYSOBJNAM"></a>
<h3>System object name (SYSOBJNAM)</h3>
<p>Specifies the system object name.
</p>
<dl>
<dt><b><u>*NONE</u></b></dt>
<dd>The object is not identified using its system object name.
</dd>
<dt><b><i>name</i></b></dt>
<dd>Specify the 10-character system object name of the document or folder.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#RTVDLOAUT.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="RTVDLOAUT.STRUSRAUTE"></a>
<h3>Starting user authority entry (STRUSRAUTE)</h3>
<p>Allows a user to specify the starting user authority entry number to use when retrieving specific user authorities (USRAUT parameter). STRUSRAUTE will enable retrieving specific user authorities for a DLO that has more than 50 specific user authorities. If no CL variable is provided for the USRAUT parameter, this parameter is ignored.
</p>
<dl>
<dt><b><u>1</u></b></dt>
<dd>User authority will be returned starting with the first specific user authority.
</dd>
<dt><b><i>2-99,999</i></b></dt>
<dd>User authority will be returned starting with the specified entry number. If the value is greater than the number of specific user authorities for the DLO, an error message will be sent and no specific user authorities will be returned.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#RTVDLOAUT.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="RTVDLOAUT.OWNER"></a>
<h3>CL var for OWNER (10) (OWNER)</h3>
<p>Specifies the name of a 10-character CL variable used to retrieve the owner of the selected document or folder.
</p>
</div>
<table width="100%">
<tr><td align="right"><a href="#RTVDLOAUT.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="RTVDLOAUT.AUTL"></a>
<h3>CL var for AUTL (10) (AUTL)</h3>
<p>Specifies the name of a 10-character CL variable used to retrieve the authorization list assigned to the selected document or folder. The value *NONE is returned if no authorization list has been assigned.
</p>
</div>
<table width="100%">
<tr><td align="right"><a href="#RTVDLOAUT.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="RTVDLOAUT.SENSITIV"></a>
<h3>CL var for SENSITIV (20) (SENSITIV)</h3>
<p>Specifies the name of a 20-character CL variable used to retrieve the sensitivity assigned to the selected document or folder.
</p>
<dl>
<dt><b>*NONE</b></dt>
<dd>The document has no sensitivity restrictions.
</dd>
<dt><b>*PERSONAL</b></dt>
<dd>The document is intended for the user as an individual.
</dd>
<dt><b>*PRIVATE</b></dt>
<dd>The document contains information that should be accessed only by the owner.
</dd>
<dt><b>*CONFIDENTIAL</b></dt>
<dd>The document contains information that should be handled according to company procedures.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#RTVDLOAUT.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="RTVDLOAUT.PUBAUT"></a>
<h3>CL var for PUBAUT (10) (PUBAUT)</h3>
<p>Specifies the name of a 10-character CL variable used to retrieve the public authority assigned to the selected document of folder.
</p>
<dl>
<dt><b>*USE</b></dt>
<dd>User can view, print, or copy the document or folder.
</dd>
<dt><b>*CHANGE</b></dt>
<dd>User can perform all operations listed for *USE and can also edit and mark the document for offline storage.
</dd>
<dt><b>*ALL</b></dt>
<dd>User can perform all operations on the document, except change ownership of the document or folder or give themselves authority to work with the document after authority has been revoked.
</dd>
<dt><b>*EXCLUDE</b></dt>
<dd>All users who are not otherwise authorized to this document or folder are denied access.
</dd>
<dt><b>USER DEF</b></dt>
<dd>Authority to this document is user-defined and is not one of the system-defined sets of authorities (*ALL, *CHANGE, *USE, *EXCLUDE).
</dd>
<dt><b>*AUTL</b></dt>
<dd>Authority specified in the authorization list being used by this document should determine public authority.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#RTVDLOAUT.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="RTVDLOAUT.CHKOUTUSR"></a>
<h3>CL var for CHKOUTUSR (32) (CHKOUTUSR)</h3>
<p>Specifies the name of a 32-character CL variable used to retrieve the user profile who has the document checked out and the user profile on whose behalf the document was checked out. If no user has checked out the documented, the 32-character variable will be blank. If the document was not checked out by a user working on behalf of another user, the last 16 characters will be blanks.
</p>
</div>
<table width="100%">
<tr><td align="right"><a href="#RTVDLOAUT.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="RTVDLOAUT.ACC"></a>
<h3>CL var for ACC (220) (ACC)</h3>
<p>Specifies the name of a 200-character CL variable used to retrieve the access codes assigned to the specified document or folder.
</p>
</div>
<table width="100%">
<tr><td align="right"><a href="#RTVDLOAUT.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="RTVDLOAUT.USRAUT"></a>
<h3>CL var for USRAUT (1020) (USRAUT)</h3>
<p>Specifies the name of a 1020-character CL variable used to retrieve the specific user authority assigned to the document or folder. USRAUT will return a maximum of 50 specific authorities per invocation of the RTVDLOAUT command. If the document or folder has more than 50 specific user authorities associated with it, you can use the STRUSRAUTE parameter on subsequent invocations of RTVDLOAUT to return user authorities starting with the specified entry numbers.
</p>
<p>Within the 1020-character CL variable are the total number of authorized users, the number of authority entries returned, the starting entry number and the ending entry number.
</p>
<p>For example:
</p>
<p>RTVDLOAUT DLO(MYDOC) FLR(MYFLR) USRAUT(&amp;RTNUSRAUT) + STRUSRAUTE(1)
</p>
<p>In the example above, MYDOC has 55 authorized users. The total number of specific user authorities will be 55. The number of authority entries returned will be 50. The starting authority entry number will be 1. The ending authority entry number will be 51.
</p>
</div>
<table width="100%">
<tr><td align="right"><a href="#RTVDLOAUT.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="RTVDLOAUT.GRPAUT"></a>
<h3>CL var for GRPAUT (340) (GRPAUT)</h3>
<p>Specifies the name of a 340-character CL variable used to retrieve the group authority assigned to the specified document or folder. Only the groups associated to the user of this command will be returned.
</p>
</div>
<table width="100%">
<tr><td align="right"><a href="#RTVDLOAUT.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="RTVDLOAUT.PGP"></a>
<h3>CL var for PGP (10) (PGP)</h3>
<p>Specifies the name of a 10-character CL variable used to retrieve the primary group assigned to the specified document or folder. The value *NONE is returned if no primary group has been assigned.
</p>
</div>
<table width="100%">
<tr><td align="right"><a href="#RTVDLOAUT.Top_Of_Page">Top</a></td></tr>
</table>
<hr size="2" width="100%">
<div><h3><a name="RTVDLOAUT.COMMAND.EXAMPLES">Examples</a> </h3>
<p><b>Example 1: Retrieve the Owner of a Document Library Object</b>
</p>
<p>
<pre>
RTVDLOAUT DLO(MYDOC) FLR(MYFLR) OWNER(&amp;OWNER)
</pre>
</p>
<p>This command retrieves the owner of document library object MYDOC in folder MYFLR and stores the value in the variable &amp;OWNER.
</p>
<p><b>Example 2: Retrieve Private User Authorities for a Document</b>
</p>
<p>
<pre>
RTVDLOAUT DLO(MYDOC) FLR(MYFLR)
USRAUT(&amp;RTNUSRAUT) STRUSRAUTE(1)
</pre>
</p>
<p>This command retrieves the user authorities for document MYDOC in folder MYFLR and stores the list in the &amp;RTNUSRAUT variable. The list will contain up to 50 privately authorized users and their authorities.
</p>
</div>
<table width="100%">
<tr><td align="right"><a href="#RTVDLOAUT.Top_Of_Page">Top</a></td></tr>
</table>
<hr size="2" width="100%">
<div><h3><a name="RTVDLOAUT.ERROR.MESSAGES">Error messages</a> </h3>
<p><b><u>*ESCAPE Messages</u></b>
</p>
<dl>
<dt><b>CPF8AC0</b></dt>
<dd>&amp;1 command failed.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#RTVDLOAUT.Top_Of_Page">Top</a></td></tr>
</table>
</body>
</html>