4 TRON
5 OPEN "output" FOR OUTPUT AS 1
7 ON ERROR GOTO 1000
10 FOR I=1 TO 10
20 FOR J=1 TO 10
30 PRINT#1, I
40 GOTO 100
60 END
100 NEXT J
110 NEXT I
999 CLOSE: END
1000 PRINT#1, "error:", ERR, ERL: PRINT ERR, ERL: RESUME NEXT


