Loading your application using the loader

Your input to the loader can be:

If you include any linkage control statements (such as LIBRARY or INCLUDE) as input to the loader, an informational error message is printed in the output listing only if you have a SYSLOUT DD statement in your input JCL (see Figure 1). Otherwise, the linkage control statements are ignored.

In basic loader processing, as shown in Figure 1, the loader accepts data from its primary input source, a data set defined by the SYSLIN DD statement. This data set is the object module produced by the compiler. The loader uses the external symbol dictionary in SYSLIN to determine whether the object module includes any external references that have no corresponding external symbols in SYSLIN.

The loader searches the automatic call library, SYSLIB, (as shown in Figure 1) for the routines in which the external symbols are defined and includes them in the load module if they exist. If all external references are resolved, the load module is executed.

Your application cannot be executed until the appropriate runtime routines have been included.

Figure 1. Basic loader processing
The loader accepts data from the primary input source, searches the automatic call library for the routines that the external symbols are defined in, and includes them in the load module. Then the load module is executed.