The $ZPRIVILEGE function returns a boolean value depending on whether the current process privileges include all privileges listed in the $ZPRIVILEGE argument. The $ZPRIVILEGE function is analogous to the DCL lexical function F$PRIVILEGE.
The format for the $ZPRIVILEGE function is:
$ZPRIV[ILEGE](expr)
The expression specifies a VMS privilege or a list of privileges separated by commas.
If the process currently has all of the specified privileges, $ZPRIVILEGE() returns a true (1).
If the process currently lacks any one of the privileges, $ZPRIVILEGE() returns a false (0).
$ZPRIVILEGE() provides a tool for determining within GT.M whether the current process privileges are adequate for some task. For information about adjusting privileges and a list of VMS privileges, refer to the section on $ZSETPRV() in "Functions".