F$USER()

From VSI OpenVMS Wiki
Jump to: navigation, search

F$USER() is a lexical function that returns the current user identification code (UIC) in named format as a character string. The F$USER function has no arguments, but must be followed by parentheses.

Syntax

F$USER()

Return Value

A character string containing the current UIC, including brackets ([ ]). The UIC is returned in the format [group-identifier,member-identifier].

Examples

$ UIC = F$USER()
$ SHOW SYMBOL UIC
  UIC = "[GROUP6,JENNIFER]"

In this example, the F$USER function returns the current user identification code and assigns it to the symbol UIC.