ME - Merge

Copies (merges) lines into the item being edited. You can merge lines into the item you are editing from any item in any file on the system, including the current item. Merged lines are inserted following the current line.

Syntax

ME{n}/{item-id}{/}{m}
MEm-k/{item-id}
MEm,n/{item-id}

ME{n}(file-specifier {item-id}){m}
MEm-k(file-specifier {item-id}
MEm,n(file-specifier {item-id}

Syntax Elements

n is the number of lines to merge. If n is not specified, one is assumed.

m is the starting line number. If m is not specified, one is assumed.

m-k is line m through line k.

m,n is n lines, starting at line m.

item-id is the identity of an item in the current or specified file. If item-id and file-specifier are omitted, lines are merged from the item being edited, thus duplicating specified lines in the item.

file-specifier specifies a file other than the file for the item being edited.

/ Is a delimiter surrounding item-id. It can be any nonnumeric character (except a blank or minus sign) that does not appear in the item-id.

Example 1

:ED FILE 1 ITEM2
Top
.L99
001 AAAAA
002 BBBBB
EOI 002
.G1
001 AAAAA
.ME2/ITEM1/1
.F
Top
.L99
001 AAAAA
002 11111
003 22222
004 BBBBB
EOI 004




Current contents of ITEM2.


Go to line 1 of the item.

Merge 2 lines from ITEM1 starting at line 1.

Example 2

:ED MD TEST1
Top
.P
001 The ABC Computer Company
002 XYZ Corporation
003 123 Main Street
EOI 003
.2
002 XYZ Corporation
.ME2,2(OFFICERS XYZ)
.F
Top
.P
001 The ABC Computer Company
002 XYZ Corporation
003 John H. Smith
004 Vice President
005 123 Main Street
EOI 005
.FI
'TEST1' filed in file 'MD'.




Contents of item TEST1 in the MD file.





Merge 2 lines, beginning with line 2, from item XYZ in the OFFICERS file.