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 be executed when you do
an EXIT from DEBUG. This means that in some circumstances, EXIT
will not get you back to DCL (for example, if you hit a
breakpoint in your exit handler). This enables you to debug your
exit handlers. If you want to get back to DCL without running
your exit handlers then use the QUIT command.
When EXIT 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:
EXIT