next up previous contents
Next: Error Recovery Up: Program Overview Previous: Permanent Data Structure Processing   Contents

Termination

ZEND is the top level routine of the termination phase. It can be called directly by ZNEXT or via a call to ZTELL forcing termination. It starts by reporting the change in the execution phase using ZPHASE before calling TMMAIN which oversees all termination. TMMAIN simply calls (via the dispatch routine SU_CALL) the termination routine for each entry in the list of software units (SUs) that INMAIN initialised but in reverse order so that an SU that depends on other is terminated before those on which it depends. The last TM routine to be called is TMZEBR to terminate ZEBRA and print a summary of all the error conditions reported. termination.



sno Guest Acct 2009-09-09