F$CONTEXT and F$PID
Use F$PID to locate selected processes.
$ IF PID .EQS. “” THEN GOTO EXIT_LOOP
$ IF F$TYPE( CTX ) .EQS. “PROCESS_CONTEXT” THEN -
$ TMP = F$CONTEXT( “PROCESS”, CTX, “CANCEL” )
Notes:
Once you have set up your selection context, pass that context symbol to F$PID() and invoke it in a loop until a null PID string if returned.
By default, F$PID() will return the PIDs of all processes in the system (local to a cluster node).
To locate all processes in the cluster matching the other selection criteria, include an F$CONTEXT invocation specifying an item code of NODENAME, a matching string of “*” and a match criterion of “EQL”.