SMP/E for z/OS Commands
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


Deleting elements

SMP/E for z/OS Commands
SA23-2275-01

When the DELETE operand is specified on the element MCS, macros, modules, source, data elements, hierarchical file system elements, and program elements are deleted from a target library. When SMP/E processes an element specifying the DELETE operand in its MCS statement, it first saves the current element entry from the target zone in a BACKUP entry on the SMPSCDS. This BACKUP entry includes the SYSMOD ID of the SYSMOD containing the MCS statement that caused the change, plus an indicator for the type of change (DEL) made. After SMP/E saves the BACKUP entry for the element, it deletes the element from the target library and the target zone.

For load modules composed entirely of modules that are to be deleted, SMP/E deletes the load modules and any aliases for the load modules from the target libraries. SMP/E also deletes the LMOD entry from the target zone.

For load modules composed of modules to be deleted and modules not to be deleted, SMP/E delinks the CSECTs in the deleted modules from the load module. In priority order, SMP/E obtains the CSECT information in the following manner:
  • From the list of CSECT names in the target zone MOD entry.
  • From the CSECT operand on the ++MOD statement from the lowest function or service level SYSMOD being installed that contains that module.
  • From the module name.

Any aliases associated with the load modules are not deleted from the target libraries, but might be marked nonexecutable by the link-edit utility. The MOD entries are deleted from the target zone, but the LMOD entry remains because it is still needed to process SYSMODs affecting the modules that have not been deleted.

Note: If a module is being deleted, SMP/E also checks whether the module is contained in any cross-zone load modules. If so, SMP/E deletes the contents of the MOD entry except the XZLMOD subentries. If the module is not reintroduced and the AUTOMATIC option is in effect for the cross-zone, it is deleted from the cross-zone load module during cross-zone processing. For more information, see SMP/E for z/OS Reference.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014