In run units that contain both DLLs and non-DLLs, use procedure- and function-pointer data items with care.
When you use the SET procedure-pointer-1 TO ENTRY entry-name or SET function-pointer-1 TO ENTRY entry-name statement in a program that is compiled with the NODLL option, you must not pass the pointer to a program that is compiled with the DLL option. However, when you use this statement in a program that is compiled with the DLL option, you can pass the pointer to a program that is in a separately bound DLL module.
If you compile with the NODYNAM and DLL options, and entry-name is an identifier, the identifier value must refer to the entry-point name that is exported from a DLL module. The DLL module name must match the name of the exported entry point. In this case, note also that: