10 REM PC-BASIC test 
20 REM RUN test
100 GOSUB 225: PRINT#1, 100: CLOSE
110 GOSUB 225: PRINT#1, 110: CLOSE
120 GOSUB 225: PRINT#1, 120: CLOSE
130 GOSUB 225: PRINT#1, 130
140 RUN "nosuch"
150 RUN 200
160 RUN ""
199 END
225 ON ERROR GOTO 1000
230 OPEN "OUTPUT.TXT" FOR APPEND AS 1
240 RETURN
1000 PRINT#1, "Error:", ERR, ERL
1010 RESUME NEXT
