F$PID()

From VSI OpenVMS Wiki
Revision as of 10:10, 5 April 2019 by Darya.zelenina (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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.