You can delete segments when in any display format,
by using the DELETE primary command. When you delete
a segment, you delete all of its child segments at
the same time.
To delete a segment using the DELETE primary command:
- In CHAR, HEX, LHEX or TABL display formats, scroll
until the segment that you want to delete is at the top
of the data area. In SNGL format, scroll until the segment
that you want to delete is displayed on the screen.
- Enter the DELETE primary command on the Command line.
In CHAR, HEX, LHEX or TABL display formats, you can
also delete segments (and the dependent child segments)
by using the D prefix command.
To delete a segment using the prefix command:
- Position your cursor in the prefix area
of the first segment to be deleted and type the
D primary command.
- Repeat this for each segment that you want
to remove from the database.
- Press Enter. The segment(s) and the dependent child
segments are deleted from the data set.
Note:
- Take care when deleting root or parent segments, as
ALL dependent child segments are deleted, even if
they are not currently displayed or selected.
- In CHAR, HEX, LHEX or TABL display formats, it is
often faster to use the prefix command as the process
of scrolling to position the segment that you want
to delete at the exact top of the data area might
take several keystrokes.
- The deletions are not committed to the database
until a SAVE command is issued in the Edit : Database
or Database Positioning panel, or until you EXIT
from the Database Positioning panel, or until the
next automatic checkpoint is issued (if AUTOSAVE
has been turned on).
Related topics