$ZPRIVilege()

Examples of $ZPRIVILEGE()

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)        
    

$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".