Contains the ID of the current process.
contains the ID number of the current process. This ID number is the host operating system’s actual Process ID (PID). This ID number is unique for each process.
This special variable cannot be modified using the SET
command. Attempting to do so results in a <SYNTAX> error.
You can obtain the same current process ID number by invoking the ProcessId()
method, as follows:
You can use $JOB
to obtain the job number for the current process as follows:
You can obtain status information about the current process from the $ZJOB
You can obtain the PID of the child process or the parent process of the current process from the $ZCHILD
You can obtain the PIDs of the current jobs in the job table from the ^$JOB
structured system variable.