SECURE PROCEDURE NAME command: Difference between revisions

From m204wiki
Jump to navigation Jump to search
No edit summary
Line 7: Line 7:
</dl>
</dl>
==Syntax==
==Syntax==
<p class="syntax">SECURE [<b>PRO</b>CEDURE] NAME=<i>procname</i>  
<p class="syntax">SECURE [<b>PROC</b>EDURE] NAME=<i>procname</i>  
   [<i>,procname</i>]... PCLASS=<i>pclass</i>
   [<i>,procname</i>]... PCLASS=<i>pclass</i>
</p>
</p>
Line 27: Line 27:
<p>Commas are required.</p>
<p>Commas are required.</p>
<p>When this command is issued, the password table should be updated by the system manager using LOGCTL with a password that has UCLASS associated with it.</p>
<p>When this command is issued, the password table should be updated by the system manager using LOGCTL with a password that has UCLASS associated with it.</p>
==Example==
==Example==
<p class="code">SECURE PROCEDURE NAME = PAY PCLASS = 7
<p class="code">SECURE PROCEDURE NAME = PAY PCLASS = 7

Revision as of 20:17, 12 April 2017

Summary

Privileges
File manager
Function
Secures a procedure

Syntax

SECURE [PROCEDURE] NAME=procname [,procname]... PCLASS=pclass

Where:

procname is the name of an existing procedure to be secured.
pclass is the number of the procedure class to be assigned to the procedure(s). The number must be in the range 1 to 255.

Syntax notes

Commas are required.

When this command is issued, the password table should be updated by the system manager using LOGCTL with a password that has UCLASS associated with it.

Example

SECURE PROCEDURE NAME = PAY PCLASS = 7 SECURE NAME = EMPLOY, PERSNEL PCLASS = 8

Usage notes

The SECURE PROCEDURE command secures a procedure by assigning a class to it. Access to a secured procedure is limited to users whose user classes authorize them to access the procedure class specified for the procedure. The way in which user classes are mapped to procedure classes is discussed in SECURE PROCEDURE ACCESS: Defining user privileges for secured procedures. This mapping can be used to restrict access to procedures that perform sensitive operations such as updating personnel records or displaying salary data.

If any of the procedures specified in the command are currently secured, their old procedure classes are changed to the new one.

When it processes SECURE PROCEDURE NAME, Model 204 ends any current User Language update unit and begins a non-backoutable update unit. If a Model 204 command non-backoutable update unit is in progress, SECURE PROCEDURE NAME is included in that update unit. See update units for more information.