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


Prelinking certain DLLs

You must use the Language Environment prelinker before standard linkage editing if a DLL must reside in a PDS load library rather than in a PDSE or an HFS file.

After compiling the DLL source, prelink the object modules to form a single object module:

  1. Specify a SYSDEFSD DD statement for the prelink step to indicate the data set in which the prelinker should create a DLL definition side file. The side file contains IMPORT prelinker control statements for each symbol exported by the DLL. The prelinker uses this side file to prelink other modules that reference the new DLL.
  2. Specify the DLLNAME(xxx) prelinker option to indicate the DLL load module name for the prelinker to use in constructing the IMPORT control statements in the side file. Alternatively, the prelinker can obtain the DLL load module name from the NAME prelinker control statement or from the PDS member name in the SYSMOD DD statement for the prelink step.
  3. If the new DLL references any other DLLs, include the definition side files for these DLLs together with the object decks that are input to this prelink step. These side files instruct the prelinker to resolve the symbolic references in the current module to the symbols exported from the other DLLs.

Use the linkage editor or binder as usual to create the DLL load module from the object module produced by the prelinker. Specify the RENT option of the linkage editor or binder.


Terms of use | Feedback

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