62.2 IBM VM/370 eMS User's
At the beginning of the edit session, issue the AUTOSAVE subcommand,
with a number:
autosave 10 Then, for every tenth change or addition to the file, the editor
issues an automatic save request6 which writes the file onto disk. At the end of the edit session, issue the subcommand:
file
This subcommand terminates the edit session, writes the file onto
disk, replacing a previous file by that name (if one existed) i and
returns you to the CMS environment. You can return to the edit
environment by issuing the EDIT command, specifying a different file
or the same file.
The editor decides which disk to write the file onto according to the
following hierarchy: If you specify a filemode on the FILE or SAVE subcommand line, the
file is written onto the specified disk. If the current filemode of the file is the mode of a read/write disk,
the file is written onto that disk@ (If you have not specified a
filemode letter, it defaults to your A-disk.) If the filemode is the mode of a read-only extension of a read/write
disk, the file is written onto the read/write parent disk. If the filemode is the mode of a read-only disk that is not an
extension of a read/write disk, the editor cannot write the file and
issues an error message. See "Changing File Identifiers" for information on how you can tell
the editor what disk to use when writing a file.
If you are editing a file and decide, after making several changes,
that you do not wish to save the changes, you can use the subcommand:
quit
No changes that you made since you last used the SAVE subcommand (or the
editor last issued an automatic save for you) are retained. If you have
just begun an edit session, and have made no changes at all to a file,
and for some reason you do not want to edit it at all (for example, you
misspelled the name, or want to change a CMS setting before editing the
file), you can use the QUIT subcommand instead of the FILE subcommand to
terminate the edit session and return to CMS. A file must have at least one line of data in order to be written.
EDIT SUBCOMMANDS While you are in the edit environment, you can issue any EDIT subcommand
or macro. An edit macro is an EXEC file that contains a sequence of EDIT
subcommands that execute as a unit. You can create your own EDIT
subcommands with the CMS EXEC facility. EDIT subcommands provide a
variety of functions. You can: position the current line pointer at a particular line, or record, in
a file.
Section 5. The CMS Editor 63
Previous Page Next Page