If an installation creates a function that uses a resource that
cannot be protected by an ESTAE-type recovery routine or an FRR, the
installation should write a resource manager for that function. The
installation-written resource manager should perform the same basic
tasks for this new function that system resource managers perform
for system functions. These are:
- At task termination: ensure that the terminating
task is not connected to or associated with any resources; that is,
each resource (data set, volume, device) is left in such a state that
another task in the address space or system can reuse it.
- At address space termination: release all
system queue area and common service
area control blocks obtained for the use of the terminating address
space. Reset all buffers, bit settings, pointers, and so on relating
to the address space.
In addition, the installation-written resource manager can include
any special processing the installation requires, and can provide
recovery routines to protect its function.