For processes started with a JOB command, $ZYJOBPARENT has pid of parent process
# Final Release Note For processes started with the [JOB](https://docs.yottadb.com/ProgrammersGuide/commands.html#job) command, the [$ZYJOBPARENT(https://docs.yottadb.com/ProgrammersGuide/isv.html#zyjobparent) intrinsic special variable provides the pid of the process which executed the JOB command. For processes not started with the JOB command, $ZYJOBPARENT is 0. [#918] # Description Currently, the job command creates a CHILD job from a PARENT process, and the job number that is created is available from the PARENT as `$ZJOB`. However, from the CHILD job, it's impossible to know currently which PARENT M process spawned the CHILD. This issue is to remedy this. # Draft Release Note Added new ISV $ZYJO\[BPARENT\] to retrieve the PID of the process that created the current process with the JOB command. If the current process was created with a JOB command, $ZYJOBPARENT will give the PID of the immediate parent who called the JOB command. If the current process was not invoked with a JOB command, $ZYJOBPARENT will be 0. The abbreviation for $ZYJOBPARENT is $ZYJO. Example ``` $ cat jobPID.m w "JOB from parent:",$JOB,! w "ZYJOBPARENT from parent:",$ZYJOBPARENT,! job NEXT quit NEXT w "ZYJOBPARENT in child:",$ZYJOBPARENT,! quit $ $ydb_dist/yottadb -run jobPID JOB from parent:26772 ZYJOBPARENT from parent:0 $ cat jobPID.mjo ZYJOBPARENT in child:26772 $ ```
issue