SuperBOL - COBOL modernisation

SuperQL

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

Technical specifications

Comparison

SupportedPartial or not verified (see the details)Not supported

As of 19/11/2026, SuperQL 1.0.0.

In place of Pro*COBOL and OpenESQL

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.

Oracle Pro*COBOL → SuperQL, dialect=procob

Pro*COBOL constructGixSQLcommunitySuperQL1.0.0
DECLARE SECTION, EXEC SQLPartlyYes
terminal format, ireclen=512NoYes
PIC X, 9, COMP, COMP-3, COMP-5PartlyYes
VARYING (2-byte length)PartlyYes
Indicators (all forms)PartlyYes
EXEC SQL VAR ... IS ...PartlyYes
Host arrays, FOR :nPartlyYes
SQLCA (including SQLCA.ANX)PartlyYes
ORACA, EXEC ORACLE OPTIONNoNo
Dynamic SQL, methods 1 to 3YesYes
Method 4 (SQLDA, SQLADR)NoNoplanned
CONNECT ... IDENTIFIED BY ... ATPartlyYes
CONNECT :usrpwd, DECLARE DATABASENoNo
WHENEVER (including DO PERFORM)PartlyYes
SQLCODE 1403, ORA codesPartlyYes
Oracle-style transactionsPartlyYes
sqlcheck=semanticsNoYes--sqlcheck
Target databases
Oracle (same database, new compiler), or PostgreSQL with the rewriting of Oracle SQL (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.
Method
six reference programs in Pro*COBOL syntax (65 cases: NULL and indicators, truncation, errors, 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.
Remaining differences
a few Oracle error codes returned as a neighbouring code, SQLERRD(3) in four error cases, FOR :n larger than the array.
COBSQL (Micro Focus)
COBSQL calls the Pro*COBOL precompiler from the Micro Focus compiler; these sources fall under this table.

Micro Focus / Rocket OpenESQL → SuperQL, dialect=openesql

OpenESQL constructGixSQLcommunitySuperQL1.0.0
CONNECT TO ... USER ... AS ...PartlyYes
SET CONNECTION, DISCONNECTPartlyYes
COMP-X, COMP-5, level 49PartlyYes
$SET SOURCEFORMAT, * in column 1NoYes
Host group + indicator arrayNoYes
SQL TYPE IS DATE / TIME / TIMESTAMPNoYes
SQL TYPE IS BINARY / VARBINARY / CHARYesYes
Host arrays, FOR :nPartlyYes
SCROLL cursors, CURRENT OFPartlyYes
SQLCA, SQLCODE and warningsPartlyYes
WHENEVERYesYes
Dynamic SQL, methods 1 to 3 (?)YesYes
DESCRIBE, SQLDA (method 4)NoNoplanned
SET AUTOCOMMIT ON/OFFNoYes
FOR UPDATE OF column (PostgreSQL)NoYes
$SET SQL(...) directivesNoPartly
Target databases
PostgreSQL through the native driver, or any database through ODBC, like OpenESQL (DBMAN=ODBC). The JDBC and ADO.NET modes of OpenESQL (JVM and .NET applications) are not covered.
Method
30 reference programs in OpenESQL syntax (291 statements), run by Visual COBOL OpenESQL and by SuperQL on the same PostgreSQL database, compared on 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.
Remaining differences
SuperQL: 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.

Among the free GnuCOBOL tools

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).

Databases

DatabaseGixSQLcommunityocesql1.4esqlOC3.0dbpre0.4SuperQL1.0.0
PostgreSQLYesYesPartlyNoYes
OracleYesNoPartlyNoYes
ODBC (any database)YesNoYesNoYes
MySQL / MariaDBYesNoPartlyYesYes
SQLiteYesNoPartlyNoYes

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.

COBOL sources

Source formatGixSQLcommunityocesql1.4esqlOC3.0dbpre0.4SuperQL1.0.0
Fixed formatYesYesYesYesYes
Free formatNoNoNoYesYes
>>SOURCE FORMAT, $SETNoNoNoNoYes
Code after column 72NoNoNoNoYes
EXEC SQL INCLUDEYesYesYesYesYes
EXEC SQL in COPY booksYesPartlyPartlyPartlyYes

Host variables

Host variablesGixSQLcommunityocesql1.4esqlOC3.0dbpre0.4SuperQL1.0.0
GroupsYesYesYesPartlynot verifiedYes
Arrays (OCCURS)PartlyYesNoNoYes
VARYINGYesYesPartlynot verifiedNoYes
IndicatorsYesYesYesNoYes
COMP-3YesYesYesPartlynot verifiedYes
COMP-5PartlyNoYesPartlynot verifiedYes
COMP-1, COMP-2PartlyPartlynot verifiedYesPartlynot verifiedYes
PIC N (national)NoYesPartlynot verifiedPartlynot verifiedNo

Cursors, dynamic SQL, errors

FeatureGixSQLcommunityocesql1.4esqlOC3.0dbpre0.4SuperQL1.0.0
CursorsYesYesYesYesYes
SCROLL cursorsNoNoNoNoYes
FOR UPDATE, CURRENT OFPartlyYesPartlynot verifiedNoYes
Dynamic SQL, method 1YesNoYesNoYes
Methods 2 and 3YesYesYesNoYes
Method 4 (DESCRIBE, SQLDA)NoNoNoNoNoplanned
SQLCODE, SQLSTATEYesYesYesPartlyYes
WHENEVERYesNoYesNoYes

Oracle, migration, dialects

FeatureGixSQLcommunityocesql1.4esqlOC3.0dbpre0.4SuperQL1.0.0
Pro*COBOL syntaxPartlyNoNoNoYes
Oracle codes on PostgreSQLNoNoNoNoYes
Oracle → PostgreSQL rewritingNoNoNoNoYes
DialectsNoNoNoNoYes
Checking against the databaseNoNoNoNoYes

The project

Runtime
SuperQL: C (no C++ dependency), compatible with programs compiled with GixSQL; GixSQL: C++; ocesql: C; esqlOC: C++; dbpre: C.
Packages
SuperQL: Debian, RPM, Windows archive (MinGW); GixSQL: packages and Windows installer of the releases published on GitHub; ocesql, esqlOC, dbpre: sources.
Licence
SuperQL: free software, precompiler and runtime GPLv3+; GixSQL: GPLv3, runtime LGPLv3; ocesql: GPLv3, runtime LGPLv3; esqlOC: GPL, runtime LGPL; dbpre: GPLv3.
Maintenance
SuperQL: Titagone - OCamlPro, with the SuperBOL Subscription; GixSQL: GnuCOBOL community, on codeberg; ocesql: OSS Consortium (Japan), last release in 2024; esqlOC and dbpre: contributions in gnucobol-contrib.

SuperQL derives from GixSQL; we also contribute to its community version on codeberg.

Modernise your COBOL codebase with SuperBOL

From proof of concept to industrial-scale production deployment, get support from one of the main contributors to GnuCOBOL.

The SuperBOL logo

Download our logo in the version suited to your background.

Need another format? Contact us.