VisualAge Generator: A function that does file or database I/O can specify an I/O error routine. The I/O error routine can be a main function or a non-main function; the syntax is the same. VisualAge Generator determines at test or generation time whether the I/O error routine is a main function or non-main function for the program. When a main function is used as the I/O error routine, VisualAge Generator pops the function stack back to the top of the stack, starts the stack over again with only the (I/O error routine) main function on the stack, and then invokes the main function. When a non-main function is used as the I/O error routine, VisualAge Generator adds the non-main function to the current function stack and then invokes the function.
EGL: The try block and onException statement are used for error handling. The syntax for an onException statement supports the following:
Associated part needed for migration: The program with its
list of main functions.
Figure 35. Ambiguous situations for functions--File and database I/O error routines
(C) Copyright IBM Corporation 1992, 2005. All Rights Reserved.