You should use the termination procedure to perform any cleanup required, such as closing files. You might also want to write out final statistical reports based on information collected during the error message filter procedures and the initialization procedures.
The termination procedure-specific control block is coded as follows:
Dcl 1 Uex_ISA native based,
2 Uex_ISA_Length_fixed bin(31); /* storage(Uex_ISA) */
The global control block syntax for the termination procedure is discussed in Structure of global control blocks. Upon completion of the termination procedure, set the return/reason codes to one of the following: