April 1. 1981 60 eMS User's Guide
April 1, 1981 Section 5. The eMS Editor
InCf1S 'lsaqe, the term edit is used in a variety of ways, all of which refeL, altimately, to the functions of the eMS editor, which is invoked
whenvou issue the EDIT command.
Toelit a file means to changes, additions, or deletions to a CMS th3t is on a disk, and to make these changes interactively: you instruct the editor to make a change, the editor does it, and then you
request another chanqe.You can edit a file that does not exist; when you do so, you create
the file online, and can modify it as you enter it. file a file means to write a file you are editinq back onto a
disk, incorporatinq any changes you made during the editing session.When YOl issue the FILE subcommand to write a file, you are no longer in
the environment of theeMS editor, but are returned to the CKS environment. You can, however, write a file to disk and then continue editina it, by usinq the subcommand. An session is the period of time during which a file is in your virtual storaqe atea, from the moment you issue the EDIT command
and thee3itor responds EDIT: until you issue the FILE or QUIT to return to the eMS command environment.
TheEDIT Command When you issue the EDIT command you must specify the filename and
filetypeof the file you want to edit. If you issue:
edit test fileCMS searches your A-disk and its extensions for a file with the
identificationTEST FILE. If the file is not found, CKS assumes that you
want tocreate the file and issues the message: NEIif FILE:
EDIT:
to informyou that the file does not already exist.
If the file exists on a disk other than your A-disk and its
extensions, or ifyou want to create a file to write on a read/write
disk other than your A-disk, you must specify the filemode of the file:
edit test file b
In this example, your B-disk and its extensions aresearched for the
file TESTFILE. 'fter you issue the EDIT command, you are in edit mode, or the enviLonlent of the editor. If you have specified the filenaae and
filetype of a file that already exists, you can nov use EDIT subcommands
to make changes or corrections to lines in that file. If you vant to
section 5. The:KS 61
In
when
To
request another chanqe.
the file online, and can modify it as you enter it.
disk, incorporatinq any changes you made during the editing session.
the environment of the
and the
The
filetype
edit test file
identification
want to
EDIT:
to inform
If the file exists on a disk other than your A-disk and its
extensions, or if
disk other than your A-disk, you must specify the filemode of the file:
edit test file b
In this example, your B-disk and its extensions are
file TEST
filetype of a file that already exists, you can nov use EDIT subcommands
to make changes or corrections to lines in that file. If you vant to
section 5. The