Your Pro*COBOL and OpenESQL sources run on GnuCOBOL without rewriting: SuperQL replaces procob or the Visual COBOL preprocessor in your build chain, and provides the runtime that executes your embedded SQL.
Keep Oracle, or move to PostgreSQL when you decide to: Oracle-specific SQL is rewritten when it is safe, and reported otherwise.
Your COBOL indexed files can also be queried in SQL from PostgreSQL.
Only available with the SuperBOL Subscription
A preprocessor derived from GixSQL. It replaces each EXEC SQL with runtime calls: DECLARE SECTION, VARYING, indicators, host arrays and block FETCH, cursors, dynamic SQL, WHENEVER. The common procob options have their equivalent.
A runtime entirely rewritten in C. No C++ dependency, compatible with programs already compiled. It connects to PostgreSQL, Oracle, ODBC, MySQL and SQLite; the same compiled program can target Oracle or PostgreSQL. Oracle conventions (SQLCODE 1403, error codes, transactions) are available even on PostgreSQL.
Rewriting and checking. Rewriting of Oracle SQL for PostgreSQL (SYSDATE, sequences, NVL, DECODE, (+) joins…), and checking of each query by the target database at precompilation time, without running it.
SQL access to indexed files. A PostgreSQL interface (foreign data wrapper) exposes COBOL indexed files as tables, from the description of their records.
Tested on PostgreSQL, Oracle, ODBC, MySQL and SQLite, with more than 900 automated test cases.
87.7%
of the Pro*COBOL cases give exactly the same result as with procob, on Oracle as well as on PostgreSQL
97.9%
of the OpenESQL statements give exactly the same result as with Visual COBOL, with the PostgreSQL driver
GixSQL: 35.7%
96.9%
of the same OpenESQL statements give exactly the same result through ODBC
GixSQL: 24.1%
SupportedPartial or not verified (see the details)Not supported
As of 19/11/2026, SuperQL 1.0.0.
Columns: SuperQL 1.0.0, with the dialect of the original tool; GixSQL, community version (codeberg.org/GnuCOBOL/gixsql, main branch), from which SuperQL derives, with its default options.
dialect=procob| Pro*COBOL construct | GixSQLcommunity | SuperQL1.0.0 |
|---|---|---|
DECLARE SECTION, EXEC SQL | Partly | Yes |
GixSQL: when | ||
terminal format, ireclen=512 | No | Yes |
SuperQL: option | ||
PIC X, 9, COMP, COMP-3, COMP-5 | Partly | Yes |
SuperQL: also | ||
VARYING (2-byte length) | Partly | Yes |
SuperQL: option | ||
| Indicators (all forms) | Partly | Yes |
GixSQL: | ||
EXEC SQL VAR ... IS ... | Partly | Yes |
SuperQL: | ||
Host arrays, FOR :n | Partly | Yes |
GixSQL: | ||
SQLCA (including SQLCA.ANX) | Partly | Yes |
GixSQL: | ||
ORACA, EXEC ORACLE OPTION | No | No |
To be removed from the sources; their options have no equivalent. | ||
| Dynamic SQL, methods 1 to 3 | Yes | Yes |
Method 4 (SQLDA, SQLADR) | No | Noplanned |
CONNECT ... IDENTIFIED BY ... AT | Partly | Yes |
SuperQL: named multiple connections ( | ||
CONNECT :usrpwd, DECLARE DATABASE | No | No |
SuperQL: named multiple connections ( | ||
WHENEVER (including DO PERFORM) | Partly | Yes |
GixSQL: | ||
SQLCODE 1403, ORA codes | Partly | Yes |
SuperQL: on Oracle, the server's codes; on PostgreSQL, the Oracle codes of common errors (duplicate key, NULL value, unknown table...). GixSQL: | ||
| Oracle-style transactions | Partly | Yes |
SuperQL: cursors kept after | ||
sqlcheck=semantics | No | Yes--sqlcheck |
SYSDATE, sequences, DUAL, NVL, DECODE, (+) joins, part of the ROWNUM uses, date and string functions; compatible with orafce). Constructs that are not rewritten are reported.WHENEVER, host arrays, cursors), run with procob on Oracle and with SuperQL on Oracle and on PostgreSQL, results compared case by case (SQLCODE, warnings, SQLERRD(3), values). 3 programs out of 6 are identical from start to finish.SQLERRD(3) in four error cases, FOR :n larger than the array.dialect=openesql| OpenESQL construct | GixSQLcommunity | SuperQL1.0.0 |
|---|---|---|
CONNECT TO ... USER ... AS ... | Partly | Yes |
SuperQL: with | ||
SET CONNECTION, DISCONNECT | Partly | Yes |
SuperQL: with | ||
COMP-X, COMP-5, level 49 | Partly | Yes |
GixSQL: | ||
$SET SOURCEFORMAT, * in column 1 | No | Yes |
| Host group + indicator array | No | Yes |
SQL TYPE IS DATE / TIME / TIMESTAMP | No | Yes |
SQL TYPE IS BINARY / VARBINARY / CHAR | Yes | Yes |
Host arrays, FOR :n | Partly | Yes |
GixSQL: | ||
SCROLL cursors, CURRENT OF | Partly | Yes |
GixSQL: | ||
SQLCA, SQLCODE and warnings | Partly | Yes |
SuperQL: | ||
WHENEVER | Yes | Yes |
Dynamic SQL, methods 1 to 3 (?) | Yes | Yes |
DESCRIBE, SQLDA (method 4) | No | Noplanned |
SET AUTOCOMMIT ON/OFF | No | Yes |
FOR UPDATE OF column (PostgreSQL) | No | Yes |
$SET SQL(...) directives | No | Partly |
SuperQL: | ||
DBMAN=ODBC). The JDBC and ADO.NET modes of OpenESQL (JVM and .NET applications) are not covered.SQLCODE, SQLSTATE, SQLERRD(3), SQLWARN and the values. 26 programs out of 30 are identical from start to finish. For GixSQL, a declaration is added after END DECLARE SECTION when it ends the WORKING-STORAGE; rejected statements count as different.DESCRIBE (method 4), FETCH LAST, a few dynamic SQL error codes. GixSQL: SQLERRD(3), error codes, COMP-5 and COMP-X values, SCROLL cursors, input arrays, SET CONNECTION, SET AUTOCOMMIT.Columns: SuperQL 1.0.0; GixSQL, community version (codeberg.org/GnuCOBOL/gixsql), from which SuperQL derives; ocesql Open-COBOL-ESQL 1.4; esqlOC 3.0 (gnucobol-contrib); dbpre 0.4 (gnucobol-contrib).
| Database | GixSQLcommunity | ocesql1.4 | esqlOC3.0 | dbpre0.4 | SuperQL1.0.0 |
|---|---|---|---|---|---|
| PostgreSQL | Yes | Yes | Partly | No | Yes |
| Oracle | Yes | No | Partly | No | Yes |
| ODBC (any database) | Yes | No | Yes | No | Yes |
| MySQL / MariaDB | Yes | No | Partly | Yes | Yes |
| SQLite | Yes | No | Partly | No | Yes |
esqlOC only goes through ODBC: each database is reached through its ODBC driver.
SuperQL and GixSQL have a native driver per database, loaded at run time; the Oracle driver uses the Oracle Instant Client.
| Source format | GixSQLcommunity | ocesql1.4 | esqlOC3.0 | dbpre0.4 | SuperQL1.0.0 |
|---|---|---|---|---|---|
| Fixed format | Yes | Yes | Yes | Yes | Yes |
| Free format | No | No | No | Yes | Yes |
dbpre: option | |||||
>>SOURCE FORMAT, $SET | No | No | No | No | Yes |
| Code after column 72 | No | No | No | No | Yes |
Sources in Pro*COBOL | |||||
EXEC SQL INCLUDE | Yes | Yes | Yes | Yes | Yes |
EXEC SQL in COPY books | Yes | Partly | Partly | Partly | Yes |
Not verified: ocesql leaves | |||||
| Host variables | GixSQLcommunity | ocesql1.4 | esqlOC3.0 | dbpre0.4 | SuperQL1.0.0 |
|---|---|---|---|---|---|
| Groups | Yes | Yes | Yes | Partlynot verified | Yes |
Arrays (OCCURS) | Partly | Yes | No | No | Yes |
GixSQL: | |||||
VARYING | Yes | Yes | Partlynot verified | No | Yes |
| Indicators | Yes | Yes | Yes | No | Yes |
COMP-3 | Yes | Yes | Yes | Partlynot verified | Yes |
COMP-5 | Partly | No | Yes | Partlynot verified | Yes |
GixSQL: known issues ( | |||||
COMP-1, COMP-2 | Partly | Partlynot verified | Yes | Partlynot verified | Yes |
GixSQL: known issues ( | |||||
PIC N (national) | No | Yes | Partlynot verified | Partlynot verified | No |
| Feature | GixSQLcommunity | ocesql1.4 | esqlOC3.0 | dbpre0.4 | SuperQL1.0.0 |
|---|---|---|---|---|---|
| Cursors | Yes | Yes | Yes | Yes | Yes |
SCROLL cursors | No | No | No | No | Yes |
| |||||
FOR UPDATE, CURRENT OF | Partly | Yes | Partlynot verified | No | Yes |
GixSQL: on PostgreSQL; not on Oracle or through ODBC. | |||||
| Dynamic SQL, method 1 | Yes | No | Yes | No | Yes |
Method 1: | |||||
| Methods 2 and 3 | Yes | Yes | Yes | No | Yes |
Method 1: | |||||
Method 4 (DESCRIBE, SQLDA) | No | No | No | No | Noplanned |
Planned, starting with the Pro*COBOL SQLDA. | |||||
SQLCODE, SQLSTATE | Yes | Yes | Yes | Partly | Yes |
dbpre: its own SQLCA, with conditions ( | |||||
WHENEVER | Yes | No | Yes | No | Yes |
| Feature | GixSQLcommunity | ocesql1.4 | esqlOC3.0 | dbpre0.4 | SuperQL1.0.0 |
|---|---|---|---|---|---|
| Pro*COBOL syntax | Partly | No | No | No | Yes |
| |||||
| Oracle codes on PostgreSQL | No | No | No | No | Yes |
| |||||
| Oracle → PostgreSQL rewriting | No | No | No | No | Yes |
| Dialects | No | No | No | No | Yes |
| |||||
| Checking against the database | No | No | No | No | Yes |
| |||||
SuperQL derives from GixSQL; we also contribute to its community version on codeberg.
From proof of concept to industrial-scale production deployment, get support from one of the main contributors to GnuCOBOL.