Purging Saved Segments from Your Virtual Machine

The SEGMENT PURGE command purges a saved segment from a segment storage space.

For example, to purge MYSEG, enter:
segment purge myseg

Purging a logical saved segment removes the objects that it contains from use by CMS. If this logical saved segment is the only loaded or reserved saved segment within the physical saved segment, the physical saved segment is detached from the virtual machine. If the physical saved segment is a member of a CP segment space and is the only loaded or reserved member in that segment space, then the segment space is detached from the virtual machine. The reserved storage area is also released unless it was explicitly reserved using the SEGMENT RESERVE command.

When you use the SEGMENT PURGE command to purge a saved segment, the saved segment must have been loaded using the SEGMENT LOAD command. If the saved segment was loaded using the DIAGNOSE code X'64' LOADSYS function, you must use the DIAGNOSE code X'64' PURGESYS function to purge the saved segment. You cannot use the SEGMENT PURGE command and the DIAGNOSE code X'64' PURGESYS function interchangeably.

To locate the saved segment you want to purge, SEGMENT PURGE uses the search order described under How CMS Locates Saved Segments.