PRE

Instructs the preprocessor to generate code that dynamically loads associated DB2 modules at run time.

Syntax:

[NO]PRE

Properties:

Default: PRE

Comments:

PRE must be used when creating INT or GNT files.

When compiling with the LITLINK compiler directive, specify NOPRE to prevent possible link errors. Because NOPRE stops the code generation that loads the associated DB2 modules at run time, you must link your application with the appropriate MFHCO import library, mfhcolib.lib (32-bit version located in %ProgramFiles(x86)%\Micro Focus\Enterprise Developer\lib; 64-bit version located in %ProgramFiles(x86)%\Micro Focus\Enterprise Developer\lib64). To do this, add the relevant .lib file to the Link with libs field on the COBOL Link tab of your project properties, or specify it as a cbllink option when linking from the command line. Doing this ensures that the DB2 modules are loaded at run time.