Retrieving a Deleted DCSS or Member Saved Segment

When you use VMFSGMAP to delete a DCSS or member saved segment from the segment map, the definition record is not deleted from the SEGDATA file, only marked 'DELETED' in the DEFPARMS field. Therefore, you can use VMFSGMAP to retrieve the deleted saved segment and add it back into the map.

Note: Segment spaces are created dynamically by CP and are not defined by definition records in the SEGDATA file. Therefore, you cannot use this method to retrieve a deleted segment space. Assuming that the members of the deleted segment space still exist as members of other spaces or as DCSSs, you must add the name of the space to the definition record for each saved segment that is to be a member of the space. See Copying or Moving a Member Saved Segment into Another Segment Space and Converting a DCSS to a Member of a Segment Space.
  1. If you are not already in a VMFSGMAP session, enter the following command to display the full Segment Map panel:
    vmfsgmap segbld esasegs segblist
    For detailed information about VMFSGMAP panels, see the description of the VMFSGMAP EXEC in the z/VM: VMSES/E Introduction and Reference.
  2. On the Segment Map panel, move the cursor to the record for the deleted saved segment, which is located at the end of the map.
  3. Press PF4/16 (Chg Obj) to display the Change Segment Definition panel.
  4. Make any necessary changes to complete the definition. In the DEFPARMS field, remove the word 'DELETED', leaving the range of the saved segment. In the SPACE field, enter the names of any segment space of which this saved segment is to be a member. If you are defining the saved segment above 16 MB, make sure that the GT_16MB field is set to 'YES'. However, remember that there could be product restrictions on loading the saved segment above 16 MB.
  5. Press PF5/17 (Map) to return to the Segment Map panel, which is refreshed to include the retrieved saved segment, or press PF12/24 (Cancel) to discard your changes and return to the Segment Map panel.
  6. If you want to stop the retrieval of the saved segment, press PF3/15 (Exit) to discard the changes and exit the map.
  7. If you want to continue with the retrieval, press PF6/18 (Save) to record the changes and remain in the map to do other tasks, or press PF5/17 (File) to record the changes and exit the map.
  8. After completing the VMFSGMAP session, use the PUT2PROD EXEC to actually build or delete the saved segments. See Building or Deleting (Purging) Saved Segments.