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

Stay on Top of What Your End Users Need Icon
Stay on Top of What Your End Users Need

Integrated tools to help streamline help desk and IT remote support tasks

Our Help Desk Essentials pack allows you to respond to tickets quickly with remote support capabilities and track and measure technician performance to continuously improve customer satisfaction. SolarWinds® Web Help Desk® and SolarWinds Dameware® Remote Support can help you provide great end-user support.

Rate This Project

Login To Rate This Project

User Ratings

★★★★★
★★★★
★★★
★★
48
2
0
1
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

  • Hi! There are more information of install with red hat? I have so many issues with that, and I need install gnucobol in that! Thanks! It's a good project!

    Reply from GnuCOBOL

    Posted 2021-09-23
    For Fedora, dnf install gnucobol, right out of the package repo. For RHEL, or CentOS, I'm assuming the same would work too. That would give you version 2.2, as of Sep 2020+1, I think. You can also use dnf install libcob if you don't need the compiler but need the run-time to run compiled programs.
  • Decent language support. Could be nice if the syntax trees were a bit easier to extract, but I managed. Version 3.1 didn't pass all NIST tests for me. Also found an overzealous optimization.

    Reply from GnuCOBOL

    Posted 2021-07-14
    Thanks for the review. We don't pass all NIST tests and skip some, mostly the one related to COMMUNICATION SECTION (not implemented "enough" to pass) and, depending on the question of ORGANIZATION INDEXED used some related tests. If you see errors in `make test`: please report via bug tracker.
  • using GnuCOBOL 3.1.2 under windows 7 and works like a charm! but if you try this on Linux eg Void I am only getting a scrolling ERROR ... ERROR what you crackheads? Was so difficult to display something meaningful when there is an issue? get some life .

    Reply from GnuCOBOL

    Edited 2021-07-20
    All CI builds run with GNU/Linux first, and also the main development, so it is unlikely to be broken "in general" there; actually your review is the first note of it getting a scrolling ERROR. In any case a bug report with the actual error you see and the output of `cobcrun -v --info` 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 :-)
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