Previous Topic Next topic Print topic


To create a JVM COBOL project for JDBC

  1. From the Eclipse IDE, create a COBOL JVM project.
  2. Right-click your project and select Properties from the context menu.
  3. Expand Micro Focus > SQL Preprocessor.
  4. Check Use SQL Preprocessor.
  5. From the Preprocessor Type drop-down list, select OpenESQL.
  6. Scroll down the Directives list and click the Value field that corresponds to DBMAN.
  7. From the drop-down list, select JDBC.
  8. Click OK.
Note: You can also set the DBMAN compiler directive to JDBC outside of the Eclipse IDE using either of these two methods:
  • Set the directive as a command-line option when you compile from the command line using the following syntax:

    SQL(DBMAN==JDBC)

  • Embed the directive at the start of a program:

    $SET SQL(DBMAN=JDBC)

Previous Topic Next topic Print topic