Common Lexical Functions
$ VBL = F$GETJPI( pid, keyword )
Examples:
$ USN = F$GETJPI( 0, “USERNAME” )
$ MOD = F$GETJPI( 0, “MODE” )
Notes:
F$GETJPI() can be used to get information about your own process or about any other process to which you have access. Normal rules of OpenVMS privilege apply: to get information about other processes within your UIC group, you need GROUP privilege; to get information about processes outside of your UIC group, you need WORLD privilege.
For information about the current process, specify the PID argument as a zero(0) as shown in the examples, or as a null string.