The %pgetpid() function returns the UNIX Process-ID (PID) associated to the D3 process line.
For Windows: Not Supported
var = %pgetpid(line)
If line is equal to -1, the PID of the current process is returned. If line is equal to -2, the PID of the flush process is returned. If the D3 process is not connected, 0 is returned.
* Get our own pid pid=%pgetpid(system(22))