F$PID()

From VSI OpenVMS Wiki
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

F$PID() is a lexical function that returns a process identification number and updates the context symbol to point to the current position in the system's process list.

Syntax

F$PID(context-symbol)

context-symbol is an arbitrary symbol established with a call to F$CONTEXT.

Examples

$ CONTEXT = ""
$ START:
$     PID = F$PID(CONTEXT)
$     IF PID .EQS. "" THEN EXIT
$     SHOW SYMBOL PID
$     GOTO START
 

This command procedure uses the F$PID function to display a list of PIDs.