HLASM Programmer's Guide
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


Additional object modules as input

HLASM Programmer's Guide
SC26-4941-06

You can use the INCLUDE and LIBRARY control statements to:
  1. Specify additional object modules you want included in the program module (INCLUDE statement).
  2. Specify additional libraries to search for object modules to include in the program module (LIBRARY statement). This statement has the effect of concatenating any specified member names with the automatic call library.
Figure 1 shows an example that uses the INCLUDE and LIBRARY control statements.
Figure 1. INCLUDE and LIBRARY control statements
           ⋮
//SYSLIN   DD   DSNAME=&&GOFILE,DISP=(SHR,DELETE)
//         DD   *
 INCLUDE MYLIB(ASMLIB,ASSMPGM)
 LIBRARY ADDLIB(COBREGN0)
/*

Data sets you specify on the INCLUDE statement are processed as the binder encounters the statement. In contrast, data sets you specify on the LIBRARY statement are used only when there are unresolved references after all the other input is processed.

For more information, see the z/OS MVS Program Management: User's Guide and Reference.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014