Guardian Procedure Calls Reference Manual

other processes can stop the process. The stop mode, set by the SETSTOP procedure, is defined
below:
ANY other process can stop the process.0
ONLY the process qualified by the above rules can stop the process.1
NO other process can stop the process.2
Returning control to the caller before the process is stopped
When error is 0, ABEND returns control to the caller before the specified process is actually
stopped. Although the process does not execute any more user code, make sure that it has
terminated before you attempt to access a file that it had open with exclusive access or before
you try to create a new process with the same name. The best way to be sure that a process
has terminated is to wait for the process deletion message.
Stopping a process that has the Inspect or saveabend attribute set
If the process being stopped has either the Inspect attribute or the saveabend attribute set,
and if DMON exists, ABEND returns error 0 but deletion of the process is delayed until DMON
approves it. If the saveabend attribute is set, DMON creates a saveabend file.
In response to the ABEND procedure, the operating system supplies a completion code in the
system message and, for OSS processes, in the OSS process termination status as follows:
If a process calls ABEND on another process, the system supplies a completion code
value of 6.
If a process calls ABEND on itself but does not supply a completion code, the system
supplies a completion code value of 5.
For a list of the completion codes, see Appendix C: Completion Codes.
Deleting high-PIN processes
ABEND cannot be used to delete a high-PIN unnamed process, but it can use it to delete a
high-PIN named process or process pair.
A high-PIN caller (named or unnamed) can delete itself by omitting process-id.
NetBatch Considerations
The ABEND procedure supports NetBatch by:
Returning the completion code information in the ABEND system message
Returning the process processor time in the ABEND system message
Sending an ABEND system message to the ancestor of a job (the GMOM) as well as the
ancestor of a process
ABEND Procedure (Superseded by PROCESS_STOP_ Procedure) 43