VMS Help
Lexicals, F$PRIVILEGE

 *Conan The Librarian (sorry for the slow response - running on an old VAX)

    Returns a string value of either TRUE or FALSE, depending on
    whether your current process privileges match those specified
    in the argument. You can specify either the positive or negative
    version of a privilege.

    Format

      F$PRIVILEGE(priv-states)

  1 - Return Value

    A character string containing the value TRUE or FALSE. The
    F$PRIVILEGE function returns the string FALSE if any one of the
    privileges in the priv-states argument list is false.

  2 - Arguments

 priv-states

    Specifies a character string containing a privilege, or a list
    of privileges separated by commas (,).  For a list of process
    privileges, refer to the OpenVMS Guide to System Security.
    Specify any one of the process privileges except [NO]ALL.

  3 - Example

  $ PROCPRIV = F$PRIVILEGE("OPER,GROUP,TMPMBX,NONETMBX")
  $ SHOW SYMBOL PROCPRIV
    PROCPRIV = "FALSE"

      The F$PRIVILEGE function is used to test whether the process
      has OPER, GROUP, and TMPMBX privileges and if you do not have
      NETMBX privileges.

      The process in this example has OPER (operator), GROUP, TMPMBX
      (temporary mailbox), and NETMBX (network mailbox) privileges.
      Therefore, a value of FALSE is returned because the process has
      NETMBX privilege, but NONETMBX was specified in the priv-states
      list. Although the Boolean result for the other three keywords
      is true, the entire expression is declared false because the
      result for NONETMBX was false.
  Close     HLB-list     TLB-list     Help  

[legal] [privacy] [GNU] [policy] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.