InterSystems IRIS Data Platform 2019.2  /  ObjectScript Reference

ObjectScript Reference
Previous section           Next section
InterSystems: The power behind what matters   

Contains the ID of the last child process.
$ZCHILD contains the ID of the last child process (the PID) that the current process created with the JOB command or the $ZF(-100) function. If your process has not used JOB or $ZF(-100) to create a child process, $ZCHILD returns 0 (zero).
$ZCHILD being set does not mean that the job was successfully started. It only means that the process was created and the parameters were passed successfully.
For example, if you use JOB to spawn a routine that does not exist, both $TEST and $ZCHILD report that the JOB command succeeded, although that new job immediately dies with a <NOROUTINE> error.
This special variable cannot be modified using the SET command. Attempting to do so results in a <SYNTAX> error.
See Also

Previous section           Next section
Send us comments on this page
View this book as PDF   |  Download all PDFs
Copyright © 1997-2019 InterSystems Corporation, Cambridge, MA
Content Date/Time: 2019-08-16 05:50:13