10 REM PC-BASIC test 
20 REM ERROR syntax
30 OPEN "OUTPUT.TXT" FOR OUTPUT AS 1
40 ON ERROR GOTO 1000
50 ERROR
60 ERROR PRINT
70 ERROR LAH
80 ERROR ,
90 ERROR -1
100 ERROR 0
110 ERROR 1
120 ERROR 255
130 ERROR 256
140 ERROR 32768
150 ERROR "!"
160 ERROR 1,
170 ERROR 1,2
180 END
1000 PRINT#1, ERR, ERL
1010 RESUME NEXT
