DISPLAY PROCEDURE command: Access privileges: Difference between revisions

From m204wiki
Jump to navigation Jump to search
m (Automatically generated page update)
 
m (typos)
Line 6: Line 6:
<dd>Displays the procedure access privileges for one or more user classes
<dd>Displays the procedure access privileges for one or more user classes
</dl>
</dl>
==Syntax==
==Syntax==
<p class="syntax"><b>D</b>ISPLAY [<b>PRO</b>CEDURE] (PRIVILEGES [,NOUSE])
<p class="syntax"><b>D</b>ISPLAY [<b>PRO</b>CEDURE] (PRIVILEGES [,NOUSE])
   [ALL | UCLASS=<i>uclass</i> [,<i>uclass</i>]...]
   [ALL | UCLASS=<span class="term">uclass</span> [,<span class="term">uclass</span>]...]
</p>
</p>
   
   
<b>Where:</b>
Where <var class="term">uclass</var> is the identification number of an existing user class whose users have access to procedures; the number must be in the range 1 to 255.
uclass is the identification number of an existing user class whose users have access to procedures; the number must be in the range 1 to 255.
 
===Syntax notes===
===Syntax notes===
<p>Parentheses and commas are required.</p>
<ul>
<p>NOUSE displays access privileges on your terminal even if a USE command precedes the DISPLAY command. Any alternate device is not used, but remains open.</p>
<li>Parentheses and commas are required.</li>
 
<li><var>NOUSE</var> displays access privileges on your terminal even if a <var>USE</var> command precedes the <var>DISPLAY</var> command. Any alternate device is not used, but remains open.</li>
</ul>
 
==Example==
==Example==
The following example displays privileges to all user classes:  
The following example displays privileges to all user classes:  
<p class="code">DISPLAY PROC (PRIVILEGES) ALL  
<p class="code">DISPLAY PROC (PRIVILEGES) ALL  
</p>
</p>
<p>The following example displays privileges for user classes 20 and 30 on your terminal:</p>
<p>
The following example displays privileges for user classes 20 and 30 on your terminal:</p>
<p class="code"><b>D PROC (PRIVILEGES,NOUSE) UCLASS=20, 30</b>  
<p class="code"><b>D PROC (PRIVILEGES,NOUSE) UCLASS=20, 30</b>  
DISPLAYING PRIVILEGES FROM FILE SALESBIZ UCLASS = 20
DISPLAYING PRIVILEGES FROM FILE SALESBIZ UCLASS = 20
Line 28: Line 34:
   PCLASS = 10,x'80'  
   PCLASS = 10,x'80'  
</p>
</p>
==Usage notes==
==Usage notes==
<p>If ALL is specified, <var class="product">Model&nbsp;204</var> displays privilege information for all user classes. If UCLASS is specified, <var class="product">Model&nbsp;204</var> displays privilege information only for the specified user classes. If neither ALL nor UCLASS is specified, <var class="product">Model&nbsp;204</var> displays your class (the value of the CURCLASS parameter) and privileges. Note that only the file manager can request information on other users' classes.</p>
<ul>
<p>The DISPLAY PROCEDURE command displays the privilege information stored in the Access Control Table (ACT). Entries in this table are constructed by the SECURE command. The following example depicts output for each user class: </p>
<li>If <var>ALL</var> is specified, <var class="product">Model&nbsp;204</var> displays privilege information for all user classes. If <var>UCLASS</var> is specified, <var class="product">Model&nbsp;204</var> displays privilege information only for the specified user classes. If neither <var>ALL</var> nor <var>UCLASS</var> is specified, <var class="product">Model&nbsp;204</var> displays your class (the value of the <var>CURCLASS</var> parameter) and privileges. Note that only the file manager can request information on other users' classes.</li>
 
<li>The <var>DISPLAY PROCEDURE</var> command displays the privilege information stored in the Access Control Table (ACT). Entries in this table are constructed by the <var>SECURE</var> command. The following example depicts output for each user class:  
<p class="code">UCLASS=u
<p class="code">UCLASS=u
PCLASS=pc,X'nn'
PCLASS=pc,X'nn'
Line 36: Line 45:
     .
     .
     .
     .
PCLASS=pc,X''nn'  
PCLASS=pc,X'nn'  
</p>
</p>
   
   
<b>Where:</b>
Where:
<table>  
<table>  
<tr>
<tr>
Line 58: Line 67:
<caption>Procedure access privileges </caption>
<caption>Procedure access privileges </caption>
      
      
<tr> <th>
<tr class="head">  
<p>Setting</p>
<th><p>Setting</p></th>  
</th> <th>
<th><p>Meaning</p></th> </tr>
<p>Meaning</p>
</th> </tr>
    
    
<tr> <th align="right"><var>
<tr> <th align="right"><var><p> X'80'</p></var></th>  
<p> X'80'</p>
<td><p>USE &ndash; Using the procedure (INCLUDE) allowed</p>
</var></th> <td>
<p>USE - Using the procedure (INCLUDE) allowed</p>
</td> </tr>
</td> </tr>
   
   
<tr> <th align="right"><var>
<tr> <th align="right"><var><p> X'40'</p></var></th>  
<p> X'40'</p>
<td><p>DISPLAY &ndash; Displaying the procedure allowed</p>
</var></th> <td>
<p>DISPLAY - Displaying the procedure allowed</p>
</td> </tr>
</td> </tr>
   
   
<tr> <th align="right"><var>
<tr> <th align="right"><var><p> X'20'</p></var></th>  
<p> X'20'</p>
<td><p>CHANGE &ndash; Changing the procedure allowed</p>
</var></th> <td>
<p>CHANGE - Changing the procedure allowed</p>
</td> </tr>
</td> </tr>
   
   
<tr> <th align="right"><var>
<tr> <th align="right"><var><p> X'10'</p></var></th>  
<p> X'10'</p>
<td><p>DEFINE &ndash; Defining the procedure allowed</p>
</var></th> <td>
<p>DEFINE - Defining the procedure allowed</p>
</td> </tr>
</td> </tr>
   
   
<tr>  <th align="right"><var>
<tr>  <th align="right"><var><p> X'08'</p></var></th>  
<p> X'08'</p>
<td><p>DELETE &ndash; Deleting the procedure allowed</p>
</var></th> <td>
</td> </tr>
<p>DELETE - Deleting the procedure allowed</p>
</td> </tr>
 
</table>
</table>
</p>
</p>
<p>The access privileges can be combined in any way.</p>
<p>The access privileges can be combined in any way.</p>
</td>
</td></tr>
</tr>
</table></li>
</ul>
</table>
 
[[Category: File manager commands]]
[[Category: File manager commands]]
[[Category: General user commands]]
[[Category: General user commands]]
[[Category:Commands]]
[[Category:Commands]]

Revision as of 19:51, 11 November 2014

Summary

Privileges
Any user (only the file manager can display other users' classes)
Function
Displays the procedure access privileges for one or more user classes

Syntax

DISPLAY [PROCEDURE] (PRIVILEGES [,NOUSE]) [ALL | UCLASS=uclass [,uclass]...]

Where uclass is the identification number of an existing user class whose users have access to procedures; the number must be in the range 1 to 255.

Syntax notes

  • Parentheses and commas are required.
  • NOUSE displays access privileges on your terminal even if a USE command precedes the DISPLAY command. Any alternate device is not used, but remains open.

Example

The following example displays privileges to all user classes:

DISPLAY PROC (PRIVILEGES) ALL

The following example displays privileges for user classes 20 and 30 on your terminal:

D PROC (PRIVILEGES,NOUSE) UCLASS=20, 30 DISPLAYING PRIVILEGES FROM FILE SALESBIZ UCLASS = 20 PCLASS = 10,x'80' PCLASS = 20,x'20' PCLASS = 30,x'80' UCLASS = 30 PCLASS = 10,x'80'

Usage notes

  • If ALL is specified, Model 204 displays privilege information for all user classes. If UCLASS is specified, Model 204 displays privilege information only for the specified user classes. If neither ALL nor UCLASS is specified, Model 204 displays your class (the value of the CURCLASS parameter) and privileges. Note that only the file manager can request information on other users' classes.
  • The DISPLAY PROCEDURE command displays the privilege information stored in the Access Control Table (ACT). Entries in this table are constructed by the SECURE command. The following example depicts output for each user class:

    UCLASS=u PCLASS=pc,X'nn' . . . PCLASS=pc,X'nn'

    Where:

    u is the user class.
    pc is a procedure class with access privileges defined for that user class.
    X'nn' is an access privilege.

    Access privileges can have the settings (shown in hexadecimal) in the table below.

    Procedure access privileges

    Setting

    Meaning

    X'80'

    USE – Using the procedure (INCLUDE) allowed

    X'40'

    DISPLAY – Displaying the procedure allowed

    X'20'

    CHANGE – Changing the procedure allowed

    X'10'

    DEFINE – Defining the procedure allowed

    X'08'

    DELETE – Deleting the procedure allowed

    The access privileges can be combined in any way.