Dynamic allocation with IMS

If data sets are specified with JCL in a control region procedure, they are initially allocated when the control region starts up. Some data sets can also be dynamically allocated.

You can specify that the following data sets be dynamically allocated when needed and deallocated when no longer in use.

Using the IMS macro DFSMDA, you declare those data sets that are subject to dynamic allocation and deallocation.

All data sets using dynamic allocation must be cataloged, except an IMS Monitor data set, which must not be cataloged. A data set that is initially allocated with JCL can be dynamically deallocated and reallocated during the execution of the control region.

Related reading: For more information on the IMS macro DFSMDA, see IMS Version 15.5 System Definition.