Binding

The Binder is used to combine two or more object code files into one object code file. The object code files are the result of successful compilations of source files. To use the Binder, include the word BIND instead of COMPILE at the start of the COMPILE or BIND statement, and use as the compiler name.

Binder uses the following sources of input:

  • A primary input file titled CARD, which contains directions to the Binder

  • A host file titled HOST, which is the object code file to which the subprograms are to be bound

  • Subprogram files, which contain the subprograms to be bound to the host program

Example

The following is an example of a bind statement:

?BEGIN JOB BIND/RESULT;
   BIND COBOL85/EXAMPLE WITH BINDER LIBRARY;
 BINDER DATA CARD % This local data specification
   HOST IS COBOL85/HOST; % replaces the input file CARD.
   USE S1 FOR PROG;
   BIND S1 FROM COBOL85/PROG; 
 ? % End Binder data
 ?END JOB.

Refer to the Binder Reference Manual for instructions regarding using the Binder program.