EDIT Subcommands-DELETE, DOWN DELETE Use the DELETE subcommand to delete one or more lines
beginning with the current line. The line immediately
last line deleted becomes the new current line. The
DELETE subcommand is:
r I I DELete I , I L r 1 , nl
'* 1 III L .J
from a file,
following the
format of the -, , , , , , ____ -..I n indicates the number of lines to be deleted, starting at the
current line. If an asterisk (*) is entered, remainder of the
file is deleted. If n is omitted, only one line is deleted.
None. If you delete the last line in the file, or if you issue the subcommand when the current line pointer is already at the end of
the file, the editor displays the message: EOF: 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 aisp1ay area. DOWN Use the DOWN subcommand to advance the current line pointer forward in
the file. The line pointed to becomes the new current line. The format
of the DOWN subcommand is: r I r 1 , DOwn I n I III I I L- n
L .J
indicates the number
the current line. If
is aavanced one line.
_____ -1 of lines to advance the pointer, starting at
n is not specified, the current line pointer
226 IBM VM/370 eMS Command and Macro Reference
EDIT Subcommands-DOWN, DSTRING DOWN is equivalent to the NEXT and FORWARD subcommands. When verification is on, the new current line is displayed at the
terminal; if the end of the file is reached, the message: EOF: is displayed. DSTRING Use the DSTRING subcommand to delete one or more lines beginning with
the current line, down to, but not including, the first line cont&ining a specified character string. The current line is not checked for the
character string. The format of the DSTRING subcommand is: r I DString L- I I[ string[ I] )
.----------_________________________________________________ -J / (diagonal) signifies any unique delimiting character that does not
appear in the string.
string specifies the group of characters for which a search is to
be made. If string is not specified, only the current line
is deleted.
The zone set by the ZONE subcommand or the default zone setting is
checked for the presence of the character string. A character string
with a length greater than the current zone setting causes the error
message ZONE ERROR. If the character string is not found by the end of the file, no
deletions occur, the current line pointer is unchanged, and the message:
STRING NOT FOUND, NO DELETIONS MADE
is displayed.
If verification is on when the DSTRING subcommand is issued at a display
terminal in display mode, the screen is changed to reflect the deletions
from the file.
section 3. EDIT Sub commands and Kacros 227
Previous Page Next Page