When you compile a COBOL program with the DLL option, it becomes enabled for DLL support. Applications that use DLL support must be reentrant. Therefore, you must compile them with the RENT compiler option and link them with the RENT binder option.
In an application with DLL support, use the following compiler options depending on where the programs or classes are:
| Programs or classes in: | Compile with: |
|---|---|
| Root load module | DLL, RENT, NOEXPORTALL |
| DLL load modules used by other load modules | DLL, RENT, EXPORTALL |
If a DLL load module includes some programs that are used only from within the DLL module, you can hide these routines by compiling them with NOEXPORTALL.