$ZGetjpi()

Returns job or process information of the specified process. The format for the $ZGETJPI function is:

$ZGETJPI(expr1,expr2)

Example:

GTM>write $zgetjpi(1975,"isprocalive")
1
GTM>

This uses $ZGETJPI() to determine whether process 1975 is alive.

Example:

GTM>set t=$zgetjpi("","cputim")
GTM>do ^bench write $zgetjpi("","cputim")-t
1738
GTM>

This uses $ZGETJPI() to measure the actual CPU time, measured in hundredths of a second, consumed by performing the BENCH routine.