Termination status of a child task (sys.Status)ΒΆ

sys.Status,,i2

Termination status of child task

Contains the termination status of a child task. When a program uses the exec command to call another process, sys.Status is set upon return. Sculptor programs may define an exit status by use of the exit command:

exit status

This returns the value of status in sys.Status in the parent process.


NOTES

  • The exit status of a child task executed by the execute() function is returned by the exitcode() function.

  • Although this is defined as an i2 field, some systems do not permit a return value greater than 255.


EXAMPLE

exec "-srepwc maketemp"
if (sys.Status <> 0) then error "Unable to build temporary file"