Deleting an exit routine from an exit

When the exit routine is no longer needed, the exit provider should use the DELETE request to remove the association between the exit and the exit routine. At a DELETE request, the system generally frees the storage that contained the exit routine once it determines that the exit routine is not in use. The following rules describe the system's freeing of storage:

As you decide whether you need to free the storage, consider the effects of address space termination. If the exit routine resides in the private area of an address space (this can only happen if you use the MODADDR keyword), make sure that you use either the JOBNAME or STOKEN parameter, and that the exit itself is not called after the address space terminates. If you don't limit the use of the exit routine, the system could end up trying to call the exit routine after its storage no longer exists due to the termination of the job or address space.