CLEAR
PURPOSE:
The CLEAR statement provides an intermediate level system reset available to a user.
It performs the following duties:
Resets ERR,ERL to 0
Resets CTL to 0
Resets FOR/NEXT and GOSUB stacks
Resets PRECISION to 2
Clears all numerics (not in the EXCEPT list) to 0 and all strings (not in the EXCEPT list) to "".
STATEMENT SYNTAX:
{stno} CLEAR {EXCEPT var list}
where: var list - is a list of variables which will not be cleared.
EXAMPLE:
0100 CLEAR
1234 CLEAR EXCEPT SAVE_STUFF$
NOTES:
The CLEAR statement is often used as the first non-REM statement in any program that does not
require special data to be used, but can make use of any files that are currently open.