Loading...
Select Version
&pagelevel(3)&pagelevel
The SHUTDOWN exit is activated while a session is terminating.
The corresponding exit routine can, for example, write its own accounting data, record statistical values, etc.
The following information is passed to the exit routine:
R1 = A(parameter area $SHUIND) R12 = A(TPR program manager) R13 = A(save area of calling component) R14 = A(indirect return) R15 = A(exit routine)
Notes
The contents of registers 12, 13 and 14 must not be destroyed by the exit routine.
The SHUTDOWN exit routine runs under the control of the operator task. Consequently all program errors lead to abnormal termination of the system.
Before the SHUTDOWN exit routine is activated a termination request exit routine is activated, if available, for every task that has to be terminated.