Rational Developer for System z
Enterprise COBOL for z/OS, Version 4.1, Programming Guide


Image description: DLL linkage and dynamic calls

This image is a block diagram that shows the following four separately bound modules: programs A, B, C, and D. Program B contains the following two subprograms: programs B1 and B2.

The blocks contain compiler options and several types of calls, shown in pseudocode as follows:

Program A:

 CBL NODLL, DYNAM
 Identification division.
 Program-id. A.
* dynamic call to B
 Call "B"

Program B:

 CBL NODLL, NODYNAM
 Identification division.
 Program-id. B.
* internal calls
 Call "B1"
 Call "B2"
 CBL NODLL, DYNAM
 Identification division.
 Program-id. B1.
* dynamic call to C
 Call "C"
 CBL DLL, NODYNAM
 Identification division.
 Program-id. B2.
* DLL linkage to D
 Call "D"

Program C:

 CBL NODLL,DYNAM
 Identification division.
 Program-id. C.

Program D.

CBL DLL, NODYNAM
  Identification division.
  Program-id. D.

End of image description.


Terms of use | Feedback

This information center is powered by Eclipse technology. (http://www.eclipse.org)