$ZSETPRV()

Examples of $ZSETPRV()

The $ZSETPRV function enables or disables privileges for the process and returns prior states for the specified privileges. The $ZSETPRV function is analogous to the DCL Lexical function F$SETPRV.

The format for the $ZSETPRV function is:

    $ZSETPRV(expr)
    

$ZSETPRV() provides a tool for adjusting VMS privileges from within GT.M. Because the $ZSETPRV() return provides the prior state of the privileges in the same format as the function input, the program can subsequently use $ZSETPRV() to restore the prior state. For information on passive determination of privileges, refer to the section on $ZPRIVILEGE() in the "Functions" chapter in this manual GT.M Programmer's Guide.