Difference between revisions of "SETPROT()"

From Lianjapedia
Jump to: navigation, search
(Products)
 
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
 
 
==Purpose==
 
==Purpose==
 
Function to change current file-protection mask
 
Function to change current file-protection mask
 
  
 
==Syntax==
 
==Syntax==
 
SETPROT(<expC>)
 
SETPROT(<expC>)
 
  
 
==See Also==
 
==See Also==
[[GETPROT()]], [[CREATE]], [[MODIFY STRUCTURE]]
+
[[GETPROT()]]
 
+
  
 
==Description==
 
==Description==
The SETPROT() function changes the current file protection mask.  The argument to SETPROT() is an <expC> in the same form that is returned by the GETPROT() function.  This string is known as the file protection mask. It is the same on all systems, however on non-OpenVMS platforms, the 'System' mask and the 'Delete' item mask are ignored.
+
The SETPROT() function changes the current file protection mask.  The argument to SETPROT() is an <expC> in the same form that is returned by the GETPROT() function.  This string is known as the file protection mask.
 
+
  
 
==Example==
 
==Example==
Line 24: Line 19:
 
</code>
 
</code>
  
 
==Products==
 
Recital, Recital Server
 
 
[[Category:Documentation]]
 
[[Category:Documentation]]
 
[[Category:Functions]]
 
[[Category:Functions]]

Latest revision as of 10:29, 9 February 2012

Purpose

Function to change current file-protection mask

Syntax

SETPROT(<expC>)

See Also

GETPROT()

Description

The SETPROT() function changes the current file protection mask. The argument to SETPROT() is an <expC> in the same form that is returned by the GETPROT() function. This string is known as the file protection mask.

Example

old_mask = getprot()
setprot("S:RWED,O:RWED,G:RW,W")
use accounts
setprot(old_mask)