## BEGIN

PURPOSE:
The BEGIN statement provides the highest level system reset. It performs the following duties:

Resets ERRerr, ERLerl to 0
Resets CTLctl to 0
RESETS FOR/NEXT and GOSUB/RETURN stacks
Resets PRECISIONprecision to 2
Clears all numerics (not in the EXCEPT list) to 0 and all strings (not in the EXCEPT list) to "".
Closes all files and devices that are open

    STATEMENT SYNTAX:
    {stno} BEGIN {EXCEPT var list}
    where:  var list - is a list of variables which will not be cleared.

    EXAMPLE:

    0100 POPZ;BEGIN
    1234 BEGIN EXCEPT SAVE_STUFF$

NOTES:
The BEGIN statement is normally executed at the beginning of a program to insure the all files are closed and the data area is cleared.