Debian Codegraph @

trip/create.rexx

raw
1 /*
2
3 */
4 out1 = "small.txt"
5 out2 = "big.txt"
6
7 call stream out1, "C", "Open Write Replace"
8 call stream out2, "C", "Open Write Replace"
9
10 crlf = d2c(13) || d2c(10)
11 same = copies("X", 90)
12
13 X = 100
14 do i = 1 to X
15 text = left(i, 8) || same || crlf
16 call charout out1, text
17 call charout out2, text
18 end
19
20 do i = X + 1 to 10000
21 text = left(i, 8) || same || crlf
22 call charout out2, text
23 end
24
25
26
27 call stream out1, "C", "Close"
28 call stream out2, "C", "Close"