Contains the ID of the current process.
Other Information About the Current Process
You can obtain the same current process ID number by invoking the ProcessId()Opens in a new tab method, as follows:
Refer to the %SYSTEM.SYSOpens in a new tab class in the InterSystems Class Reference for further details.
You can use $JOB to obtain the job number for the current process as follows:
Refer to the %SYS.ProcessQueryOpens in a new tab class in the InterSystems Class Reference for further details.
You can obtain status information about the current process from the $ZJOB special variable.
You can obtain the PID of the child process or the parent process of the current process from the $ZCHILD and $ZPARENT special variables.
You can obtain the PIDs of the current jobs in the job table from the ^$JOB structured system variable.