Skip to Main Content

Infrastructure Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Desktop COBOL Transpiler: Converts COBOL to C++, Java, C#, Python, Rust and Go (Looking for Feedback)

Hi everyone,

I built a desktop COBOL transpiler and wanted to share it with the Oracle community since a lot of COBOL modernization projects end up targeting Oracle databases.

Easy COBOL Migrator is a desktop application that converts COBOL source code to C++ 17, Java 17, C# 12, Python 3, Rust and Go. It uses a full compiler pipeline (lexer, parser, AST, semantic analyzer, 6 code generators), not AI. Same input always produces the same output.

It handles all major COBOL dialects including IBM Enterprise COBOL, Micro Focus Visual COBOL, RM/COBOL, ACUCOBOL-GT and GnuCOBOL. Covers 36 statement types, 220+ keywords, all PIC/USAGE variants including COMP-3 packed decimal, COPY/REPLACE preprocessing with nested copybooks, file I/O with record packing/unpacking, and SORT/MERGE.

For Java output, COMP-3 fields map to BigDecimal with RoundingMode. For C#, they map to decimal. No floating-point types for financial arithmetic.

EXEC SQL blocks (including Pro*COBOL) are preserved as comments with migration notes recommending the appropriate database access library for each target language (JDBC for Java, ADO.NET for C#, SQLAlchemy for Python, ODBC for C++, sqlx for Rust, database/sql for Go).

I saw the thread from a while back about migrating COBOL to Oracle where someone said "we did it the hard way, completely rewrote everything, took 4 years with 8-10 developers." These tools won't eliminate all manual work, but they handle 70-80% of the conversion automatically and produce a migration report telling you exactly where the remaining manual work is.

Product page: https://mecanik.dev/en/products/easy-cobol-migrator/

Free demo available. No registration. Would welcome feedback from anyone dealing with COBOL modernization, especially if you're targeting Oracle.

Comments
Post Details
Added 4 days ago
0 comments
51 views