Deleting a Member Saved Segment

  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 map record for the member saved segment you want to delete.
  3. You can do the deletion from the Segment Map panel or the Segment Definition panel:
    • From the Segment Map panel:
      1. Press PF11/23 (Del Obj) to delete the record from the map. The member is deleted only from the segment space that immediately precedes it in the map. The cursor then moves to next occurrence of the member in the map, if any. To completely delete the member, you must delete every occurrence. If you delete the last member of a segment space, the segment space is also deleted.
    • From the Segment Definition panel:
      1. Press PF4/16 (Chg Obj) to display the Change Segment Definition panel.
      2. If you want to just delete this member from certain segment spaces, move the cursor to the SPACE field and remove the names of those spaces. If you remove the name of a space that contains no other members, the space is also deleted. If only one space was specified, removing that name converts the member saved segment to a DCSS.

        If you really want to delete the member entirely, move the cursor to the DEFPARMS field and enter the word 'DELETED'.

      3. Press PF5/17 (Map) to return to the Segment Map panel, which is refreshed to show your changes, or press PF12/24 (Cancel) to discard your changes and return to the Segment Map panel.
    Whichever method you use, if you completely delete the member saved segment (that is, delete it from every segment space), it becomes a deleted DCSS, and a record is added to the end of the map. If the saved segment is defined on the system, the record is:
    D objname DCS DELETED
    If the saved segment is defined only in the SEGDATA file, the record is:
    P objname DCS DELETED
  4. If you want to stop the deletion and reinstate the saved segment, press PF3/15 (Exit) to discard the changes and exit the map.
  5. If you want to continue the deletion, 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.
  6. After completing the VMFSGMAP session, use the PUT2PROD EXEC to actually build or delete the saved segments. See Building or Deleting (Purging) Saved Segments.