Database Functions

Database functions perform tasks using databases. By default, all database styles recognized by the system are supported. A typical use of these functions is to reference tables created for ODBC or JDBC in Windows and DB2 (DB2/2). The functions you can use are listed below. Click on the function name to jump to a discussion of that function.

Function

Result

DBAdd

Adds a record to an open database table. Optionally returns one (1) on success or zero (0) on failure.

DBClose

Closes an open database table. Optionally returns one (1) on success or zero (0) on failure.

DBDelete

Deletes a record from a database table. Optionally returns one (1) on success or zero (0) on failure.

DBFind

Retrieves a record by key value from an open database table. Optionally returns one (1) on success or zero (0) on failure.

DBFirstRec

Retrieves the first record from an open database table. Optionally returns one (1) on success or zero (0) on failure.

DBNextRec

Retrieves the next record from an open database table. Optionally returns one (1) on success or zero (0) on failure.

DBOpen

Opens a database table. Optionally returns one (1) on success or zero (0) on failure.

DBPrepVars

Creates the DAL variables associated with a table record.

DBUnloadDFD

Streamlines the use of DAL with ODBC or JDBC and memory tables by creating DFD files and using only memory tables

DBUpdate

Updates a record retrieved from a database table. Optionally returns one (1) on success or zero (0) on failure.

The functions are generic for any supported database including ODBC (Open Data Base Connectivity) or JDBC (Java Database Connectivity) compliant databases and DB2/2 compliant databases

.

Note The customer is responsible for licensing and installing the desired database product and any required operating system driver.

All database access is routed through the system’s database library DLL. This DLL handles interfacing with the supported types of databases. Each database type has an associated database handler. Database handlers can be described in an INI control group which begins with DBHANDLER: followed by the database handler name, such as:

< DBHandler:ODBC >

< DBHandler:JDBC >