10 REM PC-BASIC test 
20 REM RESET syntax
40 ON ERROR GOTO 1000
100 OPEN "TEST1" FOR OUTPUT AS 2
110 RESET
120 PRINT#2, 1
200 OPEN "TEST2" FOR OUTPUT AS 2
210 RESET YEAH
220 PRINT#2, 1
999 END
1000 OPEN "OUTPUT.TXT" FOR APPEND AS 1
1005 PRINT#1, ERR, ERL
1010 CLOSE 1: RESUME NEXT
