z/OS TSO/E Programming Guide
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


Specifying a Subroutine Library When Compiling - the LIB Operand

z/OS TSO/E Programming Guide
SA32-0981-00

If you use subroutines that reside in a library data set, specify the LIB operand with the name of the library data set enclosed in parentheses.

For example, when running COBOL program PROG1, you need to use library SUBS.LOAD because it contains the subroutines your program calls:
RUN PROG1 COBOL LIB(SUBS.LOAD)

You can use the LIB operand when using the assembler, FORTRAN, COBOL, and PLI compilers.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014