F$PROCESS(): Difference between revisions

From VSI OpenVMS Wiki
Jump to navigation Jump to search
Created page with "'''F$PROCESS''' is a lexical function that obtains the current process name string. The F$PROCESS function has no arguments, but must be followed by pare..."
 
mNo edit summary
 
Line 17: Line 17:
In this example, the F$PROCESS function returns the current process name and assigns it to the symbol NAME.
In this example, the F$PROCESS function returns the current process name and assigns it to the symbol NAME.


[[Category:Lexical functions]]
[[Category:Lexical Functions]]

Latest revision as of 18:24, 26 October 2019

F$PROCESS is a lexical function that obtains the current process name string. The F$PROCESS function has no arguments, but must be followed by parentheses.

Syntax

F$PROCESS()

Return Value

A character string containing the current process name.

Examples

$ NAME = F$PROCESS()
$ SHOW SYMBOL NAME
  NAME = "MARTIN"

In this example, the F$PROCESS function returns the current process name and assigns it to the symbol NAME.