Edit Line Commands
M+R offers an assortment of line commands to help you edit the merged versions during reconciliation.
You can enter the line commands in the six character prefix area of each displayed code line. You can enter a line command and its argument at any place in the line command area just like an ISPF/PDF Edit.
The line command area is a number, when the line represents a base record; when the line represents a derivative record, M+R uses special symbols. The following is an example of line command area.
000015 LINE 15 OF CODE from Base
< 0016 LINE 16 OF CODE from Base replaced in derivative "A"
<>A___ Line of code from derivative "A" differs from Base line 16 above
> _B__ Line of code from derivative "B" considered added after Base line 16 above
< __H_ LINE 17 OF CODE from Base considered deleted in derivative "H"
<<0018 LINE 18 OF CODE from Base cut by the user
> ___+ Line of code inserted by the user
><___+ LINE 19 OF CODE from Base overtyped by the user
>>___+ Line of code pasted by the user
/*0020 LINE 20 OF CODE from Base deleted by the user
if "<>" derivative line differs from Base
if "> " derivative line considered added as compared to Base
if "< " Base line considered deleted/replaced compared to derivative
if "><" base or derivative line overtyped by the user
if "> " line inserted by the user
if "/*" base or derivative line deleted by the user
if "<<" base or derivative line cut by the user or derivative
if ">>" base or derivative line pasted by the user or derivative
Line Command Format
The first character must be alphabetic, whereas the second character must be one of the following:
-
Blank - defaults to "1".
-
The same alphabetic character (block command).
-
Numeric (up to 5 digits numeric argument).
-
Asterisk - meaning "all".
Line Command Summary
The following table illustrates the format, function, and examples of line commands.
COMMAND | Function | Example |
---|---|---|
A | Destination command for the Copy/Move/Paste commands. The line(s) is copied or moved After the line with this destination command. | A a |
B | Destination command for the Copy/Move/Paste commands. The line(s) is copied/moved Before the line with this destination command. | B b |
C | Copy one or more lines before or after a line. "C" is followed by a blank or a numeric and requires either "A", "B" or a Cut command. "C" and "C1" are functionally the same. | C c82 |
CC | Copy block command requiring a paired "CC" and "A", "B", or the Cut command. | Cc cc |
D | Delete one or more lines. "D" is followed by a blank or a numeric. "D" and "D1" are functionally the same. | D d83 |
DD | Delete block command requiring a paired "DD". | Dd dd |
F | Show First one or more lines that have been eXcluded or Deleted previously. "F" is followed by a blank, a single numeric, or an asterisk (*) for all. "F" and "F1" are functionally the same. | F f8y f* (show them all) |
I | Insert one or more blank lines at this position. "I" is followed by a blank or a numeric. "I" and "I1" are functionally the same. | I i12 |
L | Show Last one or more lines that have been eXcluded or Deleted previously. "L" is followed by a blank or a numeric, or an asterisk (*) for all. "L" and "L1" are functionally the same. | L l12 l* (show them all) |
M | Move one or more lines before or after a line. "M" is followed by a blank or a numeric and requires either "A", "B", or the Cut command. "M" and "M1" are functionally the same. | M m21 |
MM | Move block command requiring a paired "MM" and "A" or "B" or the Cut command. | Mm mm |
R | Repeat one or more lines. "R" is followed by a blank or numeric. "R" and "R1" are functionally the same. | R r15 |
RR | Repeat block command requiring a paired "RR" command. Repeat a block of lines and "open" it for editing. | Rr rr |
S | Show only moved around callable code, such as COBOL paragraphs. The base records are cut, while the derivative records are pasted. | |
U | Undelete one or more lines at this position; allowed only on a deleted but displayed (that is, commentedout) line. "U" is followed by a blank, asterisk, or a numeric."U" and "U1" are functionally the same. | U u11 |
UU | Undelete block command requiring a paired UU; allowed only on a deleted but displayed (that is, commented-out) line. | Uu uu |
X | eXclude one or more lines. "X" is followed by a blank or a numeric. "X" and "X1" are functionally the same. | X x123 |
XX | eXclude block command requiring a paired "XX". | Xx xx |