Guardian Programmer's Guide

Table Of Contents
Creating and Managing Processes
Guardian Programmer’s Guide 421922-014
16 - 48
Deleting Your Own Process
The Process deletion message contains the following information:
Deleting Your Own Process
You can delete your own process by calling the PROCESS_STOP_ procedure without
any parameters. The following statement stops the current process:
CALL PROCESS_STOP_;
In addition to stopping your process, you can set parameters in the PROCESS_STOP_
procedure to return additional information in the Process deletion message. This
information includes whether the process was stopped normally or abnormally and
Structure of the Process deletion message:
sysmsg[0] -101
sysmsg[1] FOR 10 Process handle of terminated process
WORDS
sysmsg[11] FOR 4 Process processor time in microseconds
WORDS
sysmsg[15] Process job ID, 0 if the process is
not
part of a job
sysmsg[16] Completion code
sysmsg[17] Termination information (0 if not
supplied)
sysmsg[18] FOR 6 SPI subsystem ID
WORDS
sysmsg[24] FOR 10 Process handle of external process
WORDS causing termination (null if none)
sysmsg[34] Length in bytes of termination text
(starting at sysmsg[41])
sysmsg[35] Offset in bytes (from beginning of
message) of process file name of
terminated named process
sysmsg[36] Length in bytes of process descriptor
of
terminated named process (or process
pair)
sysmsg[37].<0:14> Reserved
sysmsg[37].<15> Abend: death caused by abnormal
deletion
if 1, otherwise by normal deletion
sysmsg[38] FOR 3 Reserved
WORDS
sysmsg[41] FOR Termination text (up to 80 bytes),
zero
sysmsg[34] WORDS length if no termination text supplied
sysmsg[ ] FOR Process file name of terminated named
sysmsg[36] WORDS process, zero length for an unnamed
process