── BIND ── <object code file title> ─┬───────────────────────────────┬─► └─ [ ── <task identifier> ── ] ─┘ ►─┬─ BINDER ─┬───────────────────────┬─────────────────────────────────► │ └─ ON ── <family name> ─┤ └─ WITH ── <binder title> ─────────┘ ►─┬───────────────────────────────┬────────────────────────────────────► └─ [ ── <task identifier> ── ] ─┘ ►─┬─────────────────┬─┬─────────────────────────────────┬──────────────┤ ├─ SYNTAX ────────┤ └─ <compiler task equation list> ─┘ ├─ LIBRARY ───────┤ ├─ GO ────────────┤ └─ LIBRARY ── GO ─┘
── <file title> ───────────────────────────────────────────────────────┤
Explanation
The BIND statement invokes the Binder to combine object code files.
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
For a more detailed explanation and the complete syntax, see COMPILE or BIND Statement later in this section. Refer to the Binder Reference Manual for instructions regarding using Binder.
Example
The following is an example job that uses the 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.