OpenESQL

Compiling

To compile OpenESQL applications that use a 64-bit Data Source Name (DSN) for 32-bit platforms, and for which you specify the CHECK or DB compiler directive options, you must explicitly create a 32-bit DSN of the same name as the 64-bit DSN. Do this using the ODBC Data Source Administrator (32-bit). The execution process continues to use the 64-bit DSN. This applies to Windows environments (local development) only.

Linking

If you use CHARSET(EBCDIC) when compiling COBOL code that contains SQL host variables that are of the display numeric type defined as XXXXXX, you must link to the oesqlebc library to prevent link errors.

Windows:

You can either set up the link from the IDE and recompile, or run the required commands from a command prompt after compiling.

From the IDE, before compiling or recompiling:

  1. From the Application Explorer view, right-click the project; then select Properties from the context menu.
  2. Expand Micro Focus > Build Configurations > Link; then click Additional Link Files.
  3. Click Add External Files.
  4. Browse to the installDir\lib (for 32-bit) or installDir\lib64 (for 64-bit) directory, where installDir is the path to your Enterprise Developer installation, which by default is %ProgramFiles(x86)%\Micro Focus\Enterprise Developer.
  5. Double-click oesqlebc.lib to select it and add it to the list; then click OK.

From a command prompt, after compiling:

  1. Start a