$Job

$J[OB] contains an integer value uniquely identifying the process within the system environment.

GT.M uses the decimal representation of the VMS process identifier (PID) for the value of $JOB. $JOB is guaranteed to be unique for every concurrently operating process on a system. However, operating systems reuse PIDs over time. GT.M does not permit the SET command to modify $JOB.

Example:

    LOOP0 FOR SET itm=$O(^tmp($J,itm)) Q:itm="" DO LOOP1
    

This uses $J as the first subscript in a temporary global to insure that every process uses separate data space in the global ^tmp.