EDIT Subcommands-REPLACE, RESTORE REPLACE Use the REPLACE subcommand to replace the current line with a specified
line or to delete the current line and enter input Bode. The format of
the REPLACE subcommand is: r , I Replace L- I [line] I. line specifies an input line that is to replace the current line. If a
line is specified, then the editor puts it into the file in place
of the current line. If no line is specified, the editor deletes
the current line and enters input mode (see Usage Note 2 for
exception) 1. If the LINEMODE subcommand with a LEFT or RIGHT operand is in
effect, then issuing the REPLACE subcommand specifying a line is
not valid. If the REPLACE subcommand is used without any operands
when LINEMODE is set to LEFT or RIGHT, you are prompted for the
next available line number; the first data line you enter replaces
the current line number.
2. If you use the REPLACE subcommand with no operands to enter input
mode, and the next line you enter is a null line, then the current
line is not deleted, and you are returned to edit mode.
3. To stack a REPLACE subcommand in order to enter input mode from a
fixed-length you should use the &STACK control statement.
When verification is on and you issue the REPLACE subcommand with no
data line, the message: INPUT: indicates that your virtual machine is in input mode. RESTORE Use the RESTORE subcommand to restore the settings of EDIT subcommands
to their values when the PRESERVE subcommand was last issued or to their
default values if a PRESERVE subcommand has not been issued. The format
of the RESTORE subcommand is: r- I REStor-e L- 244 VM/37Q eMS Command and Macro Reference
-----, I
EDIT Subcommands-RESTORE, RETURN, REUSE (=) The settings are restored for the following subcommands:
None. CASE FMODE FNAME IMAGE LINEMODE RETURN LONG PROMPT RECFM SERIAL SHORT TABSET TRUNC VERIFY ZONE Use the RETURN subcommand to return to edit mode from the CMS subset
environment. RETURN is not an EDIT subcommand, but is listed here as a
companion to the CMS subcommand. The format of the RETURN command is: r , I RETURN i
'------ '1 When verification is on, the editor responds:
EDIT:
to indicate that your virtual machine is in edit mode. REUSE (=) Use the REUSE subcommand (which can also be specified as =) to stack
last in, first out (LIFO) the last EDIT request, except for REUSE or a
question mark, and then execute the stacked subcommands. The format of
the REUSE (or =) subcommand is:
( subcommand] II subcommand specifies any valid EDIT subcommand.
1. If the subcommand you enter on the REUSE subcommand line is an invalid subcommand, the editor clears the stack. Section 3. EDIT Subcommands and Macros 245
Previous Page Next Page