Lexical - F$GETJPI
Use to get information about your process
$ vbl = F$GETJPI( pid, item )
To get info. about the current process, specify PID
$ MODE = F$GETJPI( 0, MODE )
Notes:
The F$GETJPI() lexical function is used to get information about the current job or process.
To get information about the current process, specify the PID as a null string () or a zero(0).
The example shows how to retrieve the mode of the current process. This could also be retrieved using the F$MODE() lexical function.