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:
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
EDIT Subcommands-FILE r FIND FILE Use the FILE subcommand to write the edited file on disk and r optionallYr override the file identifier originally supplied in the EDIT
command. The format of the FILE subcommand is: r 1 , FILE L- 1 [fn (ft [fm]]] , ______________________________________________________________ -J fn indicates the filename for the file. If filename is
filetvpe and filemode cannot be specified r and the
filename r filetvpe r and filemode are used.
ft indicates the filetype for the file.
fm indicates the filemode for the file.
1. When vou specify a file identifier, any existing file that has an
identical fileid is replaced. If the file being edited had been
previously written to disk r that copy of the file is not altered.
2. You can change the filename and filemode during the editing session
using the FNAME and FMODE subcommands.
The CMS ready message indicates that the file has been written to disk
and control is returned to the eMS environment. FIND Use the FIND subcommand to locate a line based on its initial character
string. The format of the FIND subcommand is: r---- ------------------------, , Find L- line I r line] , is any character string, including blanks and tabs, that you to find beginning in column 1 of an input record. At
least one non-blank character must be specified. If line is not
specified or the line contains only blanks r the current line
pointer is moved down one line.
1. One blank can be used as a delimiter following the FIND subcommand;
additional blanks are considered part of the character string.
2. If the image setting is ONr the editor expands tab characters to
the appropriate number of blanks before searching for the line.
228 VM/370 eMS Command and Macro Reference
Previous Page Next Page