In a program, use QUIT to close all open program files, IF structures, SWITCH structures, and WHILE loops.
Option
TO filespec
Specifies the command file that is to run after the QUIT command executes. QUIT TO another codelocked binary command file is also supported.
About the QUIT Command
When the QUIT command runs, it clears the nesting levels R:BASE maintains to control the following two items:
·
Nesting command files called by the RUN commands.
·
Levels for nesting IF structures, SWITCH structures, and WHILE loops.
Examples
The following command closes all open command files, IF structures, SWITCH structures, and WHILE loops, then you are returned to the R> prompt.
QUIT
The command below closes all open command files, IF structures, SWITCH structures, and WHILE loops, and runs the command file named GETVAL.INV.