F$CONTEXT and F$PID
Use to locate selected processes.
Use F$CONTEXT to set up selection
Use F$PID to locate selected processes.
Notes:
When used together, the F$CONTEXT and F$PID functions provide a means to look up processes on the system by a number of selection criteria.