User Tools

Site Tools


ibm:vm370-lib:cmshelp:delete.helpedt

DELETE

CMS EDIT Subcommands

delete.helpedt.txt
DELETE                                                      CMS EDIT subcommand

Use the DELETE subcommand to delete one or more lines from a file, beginning
with the current line.  The line immediately following the last line deleted
becomes the new current line.  The format of the DELETE subcommand is:
+----------+------------------------------------------------------------------+
| DELete   | [1|n|*]                                                          |
+----------+------------------------------------------------------------------+
where:

n        indicates the number of lines to be deleted, starting at the current
         line.  If an asterisk (*) is entered, the remainder of the file is
         deleted.  If n is omitted, only one line is deleted.


Responses:

None.  If you delete the last line in the file, or if you issue the DELETE
subcommand when the current line pointer is already at the end of the file, the
editor displays the message:
   EOF:

Display Mode Considerations

If you delete a record when using a display terminal in display mode, the
editor rewrites the output display area with the records above the current line
pointer unchanged.  The record at the current line pointer and the remaining
records on the screen move up by one, and a new record (if one exists) moves
into the bottom of the output display area.
ibm/vm370-lib/cmshelp/delete.helpedt.txt ยท Last modified: 2023/08/06 13:36 by Site Administrator