Difference between revisions of "F$PID()"

From VSI OpenVMS Wiki
Jump to: navigation, search
(Created page with "'''F$PID()''' is a lexical function that returns a process identification number and updates the context symbol to point to the cur...")
 
(No difference)

Latest revision as of 10:10, 5 April 2019

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.