Creating Nonrelocatable and Relocatable Modules

A relocatable module is one that CMS does not need to load at a specific storage location. CMS loads relocatable modules at the highest available storage range large enough to contain it. Defining your modules as relocatable helps eliminate the possibility that the storage your module requires is being used by another program. By contrast, CMS loads nonrelocatable modules according to the location of the TEXT file when the module was created.

For CMS to create a relocatable module, you must specify the RLDSAVE option on the LOAD command. The RLDSAVE option instructs the CMS loader to save the relocation information from the TEXT file. By default, CMS does not save this relocation information when you use the LOAD command.