Before you compile the demo program, ensure that your RDBMS data source is available and correctly configured. The demo program (demo.cbl) by default is located in the Connectors sub-directory within your Samples directory.
set A_CONFIG=c:\path\to\mycfg.cfg
cobol demo.cbl IDXFORMAT"nn" NOGNT"";
where nn is either 18 (for MSSQL), 19 (for Oracle), 20 (for DB2), or 22 (for ODBC).
An executable file (demo.int) and an XFD file (orderfile.xfd) is built.
run demo.int
If you are not running the executable from the same directory as the XFD file, you will also need to add XFD_PREFIX path/to/xfd-file to your ACUFH configuration file.
On HP-UX platforms, you must use the cobrun_t syntax so that your application and the RDBMS both use a multi-threaded run time system; a mix of single- and multi-threaded run time systems will produce an error.
When the following screen appears, use A)dd to add a new record.
When you save the record, it is written to a new table (orderfile) within the database specified in the ACUFH configuration file.