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
= the LOCATE subcommand is stacked, then read by the editor and
executed again. This time the search begins from the top of the
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
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
EDIT Subcommands-SAVE, SCROLL/SCROLLUP SAVE Use the SAVE subcommand to write the file that is currently being edited
onto the disk, without returning control to CMS, and optionally to
change the file identifier. The format of the SAVE subcommand is:
r I SAVE L- I [fn [ft [fm ]]]
1 I ____ .-.J fn indicates the filename of the file to be saved. If you specify
only fn, then the filetype and filemode are the same.
ft indicates the filetype of the file to be saved.
fm indicates the filemode of the file to be saved.
1. If you specify a new file identifier, any existing file with the
same file identifier is replaced; no message is issued. The file
being edited, if previously written to disk, is not altered.
2. To write a file on disk and terminate the editing session, use the
FILE subcommand.
3. If you want to save the contents of a file at regular intervals,
use the AUTOSAVE subcommand.
When verification is on, the editor displays:
to indicate the SAVE request completed successfully and you may continue
to enter EDIT subcommands. SCROLL/SCROLLUP (3270 Only) Use the SCROLL and SCBOLLUP subcommands to scan the contents of a file
on a display screen. SCROLL causes the editor to scan forward through the file; SCROLLUP causes the editor to scan backward through the file. The format of the SCROLL and SCROLLUP subcommands is: r- , , , r 1 I {SCrOll } I In , I S[ croll ]O[ p] 1 1* I 1 I 11 I 1 I L .J L- Section 3. EDIT Subcommands and Macros 247
Previous Page Next Page