CANCEL ALL

Because it can be inconvenient to individually CANCEL every subprogram, ACUCOBOL-GT includes an extension to the CANCEL verb: CANCEL ALL. When executed, CANCEL ALL cancels every subprogram that is not active. (A program is active if it is either the main program or it has been called, but not yet exited.) Executing a CANCEL ALL after a menu selection completes is an easy way to free the memory used by that program.