CA - Concatenate

Concatenates copies of one or more lines to the current line.

Syntax

CA{m}{/string}
CA{m-k}{/string}
CA{m,n}{/string}

Syntax Elements

m is the number of lines to concatenate string to, beginning with the current line. If m is not specified, it defaults to the current line.

m -k is line m through line k.

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

/ is a separator. You can use another character if '/' is used in the string to be appended.

string is the bridging character string.

Comments

You have the option of including a character string between concatenated lines.

If you specify CA with no parameters, the line following the current line is copied to the current line, leaving the line copied as it was.

Example 1

:ED BP ABC
Top
.P
001 AAA
002 BBB
003 CCC
004 DDD
EOI 004
.T
Top
.CA2,3
002 BBBCCCDDD
.F
Top
.P
001 AAA
002 BBBCCCDDD
003 CCC
004 DDD
EOI 004




Current contents of item ABC







Concatenate lines 3 and 4 to line 2.




New contents of item ABC.

Example 2

:ED BP ABC
Top
.P
001 AAA
002 BBB
003 CCC
004 DDD
EOI 004
.T
Top
.CA2-3/TEXTSTRG
002 BBBTEXTSTRGCCC
.F
Top
.P
001 AAA
002 BBBTEXTSTRGCCC
003 DDD
EOI 003


Current contents of item ABC.








Concatenate line 3 to line 2, with the literal string TEXTSTRG sandwiched between the concatenated lines.



New contents of item ABC