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
EDIT Subcommands-REUSE (=)
2. You can use the REUSE subcommand to repeat a subcommand request
that was not satisfied the first time, for example, a LOCATE subcommand that resulted in an end-of-file condition. If you
enter:
= the LOCATE subcommand is stacked, then read by the editor and
executed again. This time the search begins from the top of the
file.
3. You can also enter more than one equal sign (=) on a single line,
to stack the last issued subcommand more once. For example:
locate /xyz/ XYZ IS FAVORITE = = = =
I FIRST XYZ IS DERIVED LAST SA W XYZ EaF: the LOCATE subcommand is stacked four times, and then the reading from the stack, executes the four stacked subcommands.
4. You can do the following if you issue a CHANGE subcommand before
positioning your current line pointer:
c/xx/yy NOT FOUND = l/x/
LINE XXXl LINE YYXl In this example, the CHANGE request was issued and stringl was not found. The REUSE subcommand stacks the CHANGE subcommand and
stacks a LOCATE subcommand in front of it. The LOCATE subcommand is
read and executed, followed by the CHANGE subcommand.
5. You can stack an INPUT or REPLACE subcommand in front of a data
line you mistakenly entered in edit mode, for example:
roses are red, violets are blue
?EDIT: ROSES ARE RED, VIOLETS ARE BLUE = input INPUT: without cms
i would be, too. The = subcommand stacks the INPUT in front of the data
line. Reading from the stack, the editor executes the INPUT subcommand, then reads in, as the first line of data, the line beqinning with ROSES. The file contains: ROSES ARE RED, VIOLETS ARE BLUE WITHOUT CMS I WOULD BE, TOO. Responses are those that are issued to the stacked subcommands. VM/370 eMS .... _____ .:1 __ .:I \,.,VUlllla.UU. a. uu. u_ ... __ na.I..1.V Reference
Previous Page Next Page