Guardian Procedure Calls Reference Manual (G06.25+)
Completion Codes
Guardian Procedure Calls Reference Manual—522629-013
C-2
5 Process calls PROCESS_STOP_ (with abnormal termination
specified) or ABEND on itself. This code is the default completion
code for the PROCESS_STOP_ procedure (when abnormal
termination is specified) and the ABEND procedure.
6 PROCESS_STOP_, STOP, or ABEND was called to delete a process
by an external, but authorized, process. The system includes this
completion code in the process deletion message. If the process
cannot be stopped, the request is saved so that when the process
calls SETSTOP this completion code is sent with the process deletion
message. The user ID, the PCBCRAID (CAID) and the process ID of
the process that caused the termination, are included in the
termination message.
7 Restart this job. This completion code is used by the NetBatch
scheduler and an executor process. The executor process sets its
completion code to this value upon termination; the scheduler
interprets this completion code and restarts a “restartable” job.
8 Code 8 is the same as code 1, normal termination, except that the
user must examine the listing file to determine whether the results are
acceptable. Completion code 8 is typically used by compilers.
9
The
kill() or raise() function generated a signal that stopped the
process. The termination information provides the signal number.
Note. If a signal is delivered to a signal handler that stops the process, the completion code
will be determined by the handler. For example, when a signal stops a native C program, a
different completion code is returned as set by the signal handler installed by the Common
Run-Time Environment (CRE).
Completion
Code Definition