Error Handling

Any fault caused and ignored by a procedure in a library that is invoked by a calling program is treated as a fault in the calling program. If ignored by the calling program, this fault causes the calling program to be terminated but has no effect on the status of the library.

If a library program faults or is otherwise terminated before executing a FREEZE statement, then all calling programs that are waiting to link to that library program are also terminated.

If a library is terminated while calling programs are linked to it, those calling programs are also terminated.

The first call on an entry point in a library causes library linkage to be made. In this phase, an attempt is made to locate and establish links to all entry points declared by the calling program. If an entry point declared in the calling program does not exist in the library, its linkage cannot be established, and any subsequent calls to that entry point result in a MISSING ENTRY POINT error. This error continues to occur whenever a calling program links to that instance of the library and calls that entry point. Thus, it is advisable to remove that instance of the library (by either a THAW or DS (Discontinue) ODT command) and initiate a correct version of the library. For more information, refer to the System Commands Reference for a description of these commands.