F$PID()
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.