GnuCOBOL (formerly OpenCOBOL) is a free, modern COBOL compiler. GnuCOBOL implements a substantial part of the COBOL 85, COBOL 2002 and COBOL 2014 standards and X/Open COBOL, as well as many extensions included in other COBOL compilers (IBM COBOL, MicroFocus COBOL, ACUCOBOL-GT and others).

GnuCOBOL translates COBOL into C and compiles the translated code using a native C compiler.
Build COBOL programs on various platforms, including GNU/Linux, Unix, Mac OS X, and Microsoft Windows. GnuCOBOL has also been built on HP/UX, z/OS, SPARC, RS6000, AS/400, along with other combinations of machines and operating systems.

Copyright 2001-2020 Free Software Foundation, Inc.

The cobc compiler is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the FSF; either version 3, or (at your option) any later version.

The libcob run time support source tree is licensed under the GNU LGPL.

Features

  • A nicely complete implementation of COBOL with nearly seamless C integration
  • Over 9740 NIST COBOL 85 test suite tests passed, over 24000 tests in more than 1000 internal test groups
  • Dialect support for COBOL85, X/Open, COBOL2002, COBOL2014, MicroFocus, IBM, MVS, ACUCOBOL-GT, RM/COBOL, BS2000
  • Supports ORGANIZATION INDEXED along with REPORT SECTION, SCREEN SECTION, FUNCTION-ID
  • Almost full support of the COBOL 2014 Compiler Directing Facility feature set
  • EXEC SQL preprocessors available for PostgreSQL, Firebird, ODBC, DB2
  • ASCII, EBCDIC, little endian, big endian. A build published for z/OS OMVS/USS
  • Compiler built with GNU Autotools and GCC, also successfully builds with LLVM clang, VisualStudio or others
  • Direct access to almost all C libraries, and even more with the C++ base
  • Multiple screen libraries available including Java (AWT/SWING) and GTK+ based
  • Code integrating Ada, Guile, Lua, Rexx, Javascript, Python, and others, published
  • CGI capable and desktop ready
  • Compiler and runtime messages translated; English, Spanish, Portuguese, Swedish, Dutch, German, French, more to come

Project Samples

Project Activity

See All Activity >

Follow GnuCOBOL

GnuCOBOL Web Site

Other Useful Business Software

Accelerate Open Source Workloads on Microsoft Azure Icon
Accelerate Open Source Workloads on Microsoft Azure

Easily administer security and overcome complexity with Red Hat Enterprise Linux on Microsoft Azure

Deploy Red Hat Enterprise Linux in just a few clicks today.

Rate This Project

Login To Rate This Project

User Ratings

★★★★★
★★★★
★★★
★★
47
2
0
0
3
ease 1 of 5 2 of 5 3 of 5 4 of 5 5 of 5 4 / 5
features 1 of 5 2 of 5 3 of 5 4 of 5 5 of 5 4 / 5
design 1 of 5 2 of 5 3 of 5 4 of 5 5 of 5 4 / 5
support 1 of 5 2 of 5 3 of 5 4 of 5 5 of 5 4 / 5

User Reviews

  • using GnuCOBOL 3.1.2 under windows 7 and works like a charm!

    Reply from GnuCOBOL

    Posted 2021-01-05
    Works fine here - GnuCOBOL asks "hard-wired" for whatever version of BDB the bdb header file "db.h" reports. So I _guess_ you may have either installed a BDB runtime without a matching header file or your system default CPPFLAGS does not have the directory to the matching db.h file in which case you can explicit pass it. In any case a bug report with provided config.log is likely more useful to fix the issue you have on your local machine than leaving a rating...
  • This cobol is easy to use once you get install. The support is very good.
  • Important project: about 35% of "production" code is in COBOL, and it processes about 80% of all transactions (e.g., ATMs, telephone calls), so making it robust will allow many companies to thrive. Was easy to integrate (and extend) in my COBOL translation project. In need of thorough testing, as the quality is still "Just OK". Wish I had more free time to help :-)
  • The development team has excellent communication and quick interaction and answers to questions asked. As for the quality of the compiler I found it very good.
  • This review is for the work done by the maintainers of GnuCOBOL. I really want to highlight that I like GnuCOBOL but I hate COBOL language itself.
Read more reviews >

Additional Project Details

Languages

English, Japanese, Spanish

Intended Audience

Developers

User Interface

Web-based, Console/Terminal, Command-line, GTK+, Tk

Programming Language

COBOL, C

Database Environment

Berkeley/Sleepycat/Gdbm (DBM), Other file-based DBMS

Registered

2001-09-03