Control which columns of a file are displayed or searched during an
editing session. Modify data lines. Describe the characteristics that a file and its individual records
will have. Automatically write and update sequence numbers for fixed-length
records. Edit files by line number. Control the editing session.
Like CMS commands, EDIT subcommands have a subcommand name and some have
operands. In most cases, a subcommand name (or its truncation) can be
separated from its operands by one or more blanks, or no blanks. For
example, the subcommand lines:
type 5
ty 5
tS
are equivalent. Several subcommands also use delimiters, which enclose a character
string that you want the editor to operate on. For example, the CHANGE
subcommand can be entered:
change/apple/pearl
The diajonal (/) delimits the character strings APPLE and PEAR. For the
subcommands CHANGE, LOCATE, and DSTRING, the first nonblank character
following the subcommand name (or its truncation) is considered the
delimiter. No blank is required following the subcommand name. In the
subcommand:
locate $vm/$
the dollar sign ($) is the delimiter. You cannot use a / in this case,
since the diagonal is part of the character string you want to locate. When you enter these subcommands, you may omit the final delimiter;
for example:
dstring/csect You must enter the final delimiter, however, when you specify a global
change with the CHANGE subcommand.
For the FIND and OVERLAY subcommands, additional blanks following the
subcommand names are interpreted as arguments. The subcommand:
find Pudding
requests the editor to locate the line that has" Pudding" in columns 1
through 9. Initial blanks are considered part of the character string.
64 IBM VM/370 eMS User's Guide
Pg. of GC20-1819-2 Rev March 30, 1979 by Supp. SD23-9024-1 for 5748-XX8 An asterisk, when used with an EDIT
of the file" or "to the record length."
delete*
subcommand, may mean "to the end
For example:
deletes all of the lines in a file, beginning with the current line.
verify *
indicates that the editor should display the entire length of records. When you make an error entering an EDIT subcommand, the editor displays
the message:
?EDIT: line ••• where line ••• is the line, as you entered it, that the editor does not
understand.
The Current Line Pointer When you begin an editing session, a file is copied into virtual
storage; in the of a new file, virtual storage is acquired for the
file you are creating. In either case, you can picture the file as a
series of records, or lines; these lines are available to you, one at a
time, for you to modify or delete, You can also insert new lines or records following any line that is already in the file.
The line that you are currently editing is pointed to by the current
line pointer. On a display terminal, this line is highlighted. What you do during an editing session is: position the current line pointer to access the line you want to
edit. Edit the line: change character strings in it, delete it or insert
new records following it. position the line pointer at the next line you want to edit. When you are editing a file and you issue an EDIT subcommand that
either changes the position of the line pointer or that changes a line,
the current line or the changed line (or lines) is displayed. You can
also display the current line by using the TYPE subcommand:
type
If you want to examine more than one line in your file, you can use the TYPE subcommand with a numeric parameter. If you enter:
type 10 the current line and the nine lines that follow it are displayed; the
line pointer then stays positioned at the last line that was displayed. You can move the line pointer up or down in your file. "Up" indicates
a location toward the beginning of the file (the first record); "down" Section 5. The CMS Editor 65
Previous Page Next Page