= a command
.aa-aa format is not supported
.specify destination of m(Move),c(Copy) line command
or COPy,MOVe command to copy the external file.
.n,b,s parameter pattern
an : copy n times full set of source lines.
an.s : copy full set of source lines then skip s lines,
repeat that n times.
a,b.s : get and copy b lines from source then skip s lines,
repeat that until source is exhausted.
an,b.s : get and copy b lines from source then skip s lines,
repeat that n times(break if source is exhausted).
.Specify "B"(Binary copy option) just after "A"(after) cmd.
abn,b.s
.Specify "C"(CID copy option) after "B" if exist.
a[b]cn,b.s
(1) x[n] pattern
.copy 3 lines just after the line.
c3 |A
0000002|B
0000003|C
0000004|D
0000005|E
a |F
0000007|G
===>
0001000|A
0002000|B
0003000|C
0004000|D
0005000|E
0006000|F
0006100*A
0006200*B
0006300*C
0007000|G
.repeat 3 times fullset copy.
cc |A
0000002|B
cc |C
0000004|D
0000005|E
a3 |F
0000007|G
===>
0001000|A
0002000|B
0003000|C
0004000|D
0005000|E
0006000|F
r1 0006100*A
0006200*B
0006300*C
r2 0006400*A
0006500*B
0006600*C
r3 0006700*A
0006800*B
0006900*C
0007000|G
(2) xn.s pattern
.repeat 3 times fullset copy skipping intermediate 2 line.
cc |A
0000002|B
cc |C
0000004|D
a3.2 |E
0000006|F
0000007|G
0000008|H
0000009|I
0000010|J
===>
0001000|A
0002000|B
0003000|C
0004000|D
0005000|E
r1 cc 0005100*A
0005200*B
cc 0005300*C
s1 0006000|F
s1 0007000|G
r2 cc 0007100*A
0007200*B
cc 0007300*C
s1 0008000|H
s1 0009000|I
r3 cc 0009100*A
0009200*B
cc 0009300*C
0010000|J
(3) x,b.s pattern
.copy each 4 lines skipping intermediate 1 line for all copy source.
cc |1
0002000|2
0003000|3
0004000|4
0005000|5
0006000|6
0007000|7
0008000|8
0009000|9
cc |0
a,4.1 |A
0012000|B
0013000|C
0014000|D
===>
0001000|1
0002000|2
0003000|3
0004000|4
0005000|5
0006000|6
0007000|7
0008000|8
0009000|9
0010000|0
0011000|A
r1 b1 0011100*1
b2 0011200*2
b3 0011300*3
b4 0011400*4
s1 0012000|B
r2 b1 0012100*5
b2 0012200*6
b3 0012300*7
b4 0012400*8
s1 0013000|C
r3 b1 0013100*9
b2 0013200*0
0014000|D
(4) xn,b.s pattern
.copy each 2 lines skipping intermediate 1 line,repeat that 3 times.
cc |1
0002000|2
0003000|3
0004000|4
0005000|5
0006000|6
0007000|7
0008000|8
0009000|9
cc |0
a3,2.1 |A
0012000|B
0013000|C
0014000|D
===>
0001000|1
0002000|2
0003000|3
0004000|4
0005000|5
0006000|6
0007000|7
0008000|8
0009000|9
0010000|0
0011000|A
r1 b1 0011100*1
b2 0011200*2
s1 0012000|B
r2 b1 0012100*3
b2 0012200*4
s1 0013000|C
r3 b1 0013100*5
b2 0013200*6
0014000|D
0015000|E
0016000|F
0017000|G
0018000|H
.case of b,s parameter for copy source specification.
cc,3 |1
0002000|2
0003000|3
0004000|4
0005000|5
0006000|6
0007000|7
0008000|8
0009000|9
cc.1 |0
a3,2.1 |A
0012000|B
0013000|C
0014000|D
0015000|E
===>
0001000|1
0002000|2
0003000|3
0004000|4
0005000|5
0006000|6
0007000|7
0008000|8
0009000|9
0010000|0
0011000|A
r1 c1 0011100*1
c2 0011200*2
0012000|B
r2 c3 0012100*3
c1 0012200*5
0013000|C
r3 c2 0013100*6
c3 0013200*7
0014000|D
0015000|E
(5) case of copy source is external file.
.simple case.
"x2" contents
*******|********** TOP OF FILE ********************
0001000*0001
0002000*0002
0003000*0003
0004000*0004
*******|********** END OF FILE ********************
===>copy x2
0000001|A
a |B
0000003|C
===>
0001000|A
0002000|B
0002100*0001
0002200*0002
0002300*0003
0002400*0004
0003000|C
.effect of [,b][.s] parameter
===>copy x2
0000001|A
a2,3.1 |B
0000003|C
===>
0001000|A
0002000|B
0002100*0001
0002200*0002
0002300*0003
0003000|C
0003100*0004
0004000|D