JOB VariableΒΆ

Material prepared from M Programming Book [WALTERS1997]

Page 208

$JOB contains the process ID of the current running program. This is a unique, posotive integer, assigned by the operating system, and will change each time the program is run. However, if a program spawns multiple processes, this stays the same across them.

Example:

GTM> WRITE $JOB
1025