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.
omitted,
existing
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
EDIT Subcommands-FIND, FMODE 3. If the current line pointer is at the bottom of the file when the FIND subcommand is issued the search begins at the top of the file. When verification is on, the line is displayed at the terminal. If the
line is not found, the message: EOF: is displayed and you may use the REUSE (=) subcommand to search again,
beginning at the top of the file. FMODE Use the FMODE subcommand to display or change the filemode of a file.
The format of the FMODE subcommand is: r ----------------------------------------------------.--------, , FMode L- I [fm] , ______--J fm indicates the filemode that is to replace the current filemode
setting. You can specify only a filemode letter (A-G, S, Y, or Z),
or a filemode letter and number (0-5). If you specify a filemode the existing filemode number is retained.
1. The specified filemode is used the next time a FILE, SAVE, or
automatic save request is issued. If the file being edited had
been previously filed or saved, that copy of the file remains
unchanged.
2. If the disk specified by filemode already contains a file with the
same filename and filetype, that file is replaced when a FILE,
SAVE, or automatic save request is issued; no warning message is
issued.
3. If the filemode specified is that of a read-only disk, then when an
attempt is made to file or save the file, the editor displays an
error message.
If you enter the FMODE subcommand without specifying fm, the editor
displays the current filemode. When you specify a new filemode with the FMODE subcommand, the editor
writes the new filemode in the filemode field at the top of the screen.
section 3. EDIT Subcommands and Macros 229
Previous Page Next Page