If this command is given at the level of the "DBG>" prompt then
it causes orderly termination of the debugging session. Log
files are closed, screen and keypad are restored to their
original state, and control is returned to DCL.
Any exit handlers that you declare will not be executed when you
do an QUIT from DEBUG. This is the difference between QUIT and
EXIT - EXIT does execute your exit handlers. If you do not have
exit handlers, the two commands are equivalent.
When QUIT is given from a DO command list or an "@" command file
then it just exits the DO list or the command file. In this
case, it does not end the debugging session.
Format:
QUIT
Example:
DBG> QUIT