Guardian Procedure Calls Reference Manual (G06.25+)

Guardian Procedure Calls (S)
Guardian Procedure Calls Reference Manual522629-013
14-103
SETMODE Procedure
Examples
1. LITERAL SECURITY = %0222;
.
.
.
CALL SETMODE ( FNUM , 1 , SECURITY );
The LITERAL above sets the file's security to:
read = any local user
write = owner only
execute = owner only
purge = owner only
2. LITERAL PROG^SEC = %102202;
.
.
.
CALL SETMODE ( PFNUM , 1 , PROG^SEC );
This LITERAL specifies that the file’s owner ID should be used by the calling
process as its process access ID when the program file is run. This is done by
setting the file’s security to:
set process access ID to owner's ID when file is run
read owner only
write owner only
execute any local user
purge owner only
Related Programming Manuals
For programming information about the SETMODE file-system procedure, see the
Guardian Programmer’s Guide and the data communication manuals.