10 REM PC-BASIC test 
20 REM LET syntax
30 OPEN "OUTPUT.TXT" FOR OUTPUT AS 1
40 ON ERROR GOTO 1000
50 PRINT#1, 50: X
60 PRINT#1, 60: Y
70 PRINT#1, 70: Y: PRINT#1, 700
80 END
1000 PRINT#1, "ERROR:", ERR, ERL
1010 RESUME NEXT
