To compile an OpenESQL application that uses OpenESQL for JDBC, you specify JVM COBOL using the JVMGEN compiler directive (Windows) or the -j command flag (UNIX), and JDBC by setting the DBMAN SQL compiler directive option. For example:
cobol myprog.cbl JVMGEN SQL(DBMAN=JDBC); (Windows)
Or:
cob -j myprog.cbl -C "SQL(DBMAN==JDBC)" (UNIX)