Compiling JDBC Applications from the Command Line

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)

Note: If you also specify the SQL(CHECK) compiler directive, you must have your runtime environment configured to enable the compiler to access the database. See Configuring the JDBC Run-time Environment for details.