MM / MM[n]
The number of lines to be moved. If you do not type a number, or if the number you type is 1, only the line on which you type M is moved For the MM command, n is the number of copies of the MM block to be moved, which is assumed to be 1 if omitted.
The n operand cannot be used on the MM command if it is participating in a line swap with a W/WW block.
Note: The C/CC and M/MM line commands are also used to mark lines for the use of various primary commands. When used for this purpose, you may not also enter other non primary related line commands during the same interaction. e.g. if using CC/CC to mark a range of lines for use by the CREATE primary command, you may not, at the same time, enter other line commands such as I Insert, D Delete, etc.
When used to "mark off" a line range for use by a primary command, CC is usually the line-command of choice. MM can also be used, but it causes the marked range of lines to be deleted after the primary command is performed.
Note: In order to be ISPF compatible, the FIND command will not use a pending C/CC or M/MM block to define a line range, because of the long-standing custom of ISPF users to keep such blocks pending while using FIND to search for a place into which to move or copy that block. To use FIND and have a C/CC or M/MM block to define a line range, use the FIND alias of FF.
See FIND - Find a Character String for more information.
M/MM can also be used in conjunction with W/WW to swap two blocks of lines. When a swap is performed, the two blocks need not contain the same number of lines.
To move one or more lines within the same file:
To move a block of lines within the same file:
Note: See Word Processing Support for information about text swaps.
Example of using M/MM and W/WW to swap lines:
Created with the Personal Edition of HelpNDoc: Easy EPub and documentation editor