GnuCOBOL is a free COBOL compiler. Built with GNU autotools, ./configure, make.
GnuCOBOL is the new name for OpenCOBOL. September 27th, 2013 OpenCOBOL was accepted as an official GNU project, and renamed to GnuCOBOL (with the name GNU Cobol from September 2013 to September 2014).
Below is a copy of the long standing acknowledgment request that appears in all versions of the CODASYL COBOL Journal of Development and ANSI/ISO COBOL standards.
Any organization interested in reproducing the COBOL standard and specifications in whole or in part, using ideas from this document as the basis for an instruction manual or for any other purpose, is free to do so. However, all such organizations are requested to reproduce the following acknowledgment paragraphs in their entirety as part of the preface to any such publication:
with respect, the acknowledgement:
COBOL is an industry language and is not the property of any company or group of companies, or of any organization or group of organizations. No warranty, expressed or implied, is made by any contributor or by the CODASYL COBOL Committee as to the accuracy and functioning of the programming system and language. Moreover, no responsibility is assumed by any contributor, or by the committee, in connection therewith. The authors and copyright holders of the copyrighted materials used herein FLOW-MATIC (trademark of Sperry Rand Corporation), Programming for the UNIVAC (R) I and II, Data Automation Systems copyrighted 1958, 1959, by Sperry Rand Corporation; IBM Commercial Translator Form No. F28-8013, copyrighted 1959 by IBM; FACT, DSI 27A5260-2760, copyrighted 1960 by Minneapolis-Honeywell have specifically authorized the use of this material, in whole or in part, in the COBOL specifications. Such authorization extends to the reproduction and use of COBOL specifications in programming manuals or similar publications. Any organization using a short passage from this document, such as in a book review, is requested to mention "COBOL" in acknowledgment of the source.
Many thanks to the original designers, supporting organizations and individuals.
cobc translates COBOL source code to native executable using intermediate C sources. There is also a version, GnuCOBOL C++, gnu-cobol-cpp, that generates C++ intermediates.
GnuCOBOL builds executable, shared library, object file and listing from a well integrated cobc command. COBOL and C sources can be mixed in compiler command lines.
GnuCOBOL passes over 9700 of the tests included in the National Institute of Standards and Technology COBOL 85 acceptance test suite.
supports many extensions from other COBOL compilers and adds some nice bits only available with GNU Cobol. FUNCTION SUBSTITUTE being one example of a very useful intrinsic.
While developed to be a useful, production ready COBOL programming tool, GnuCOBOL does NOT claim any level of official COBOL standard support or compliance.
Roger While took on the lead development of OpenCOBOL in 2004, from works first released by Keisuke Nishida in 2002. Frequent pre-releases were posted publicly up until February 2009. Due to life changes and circumstances, those releases became less public. The current, most widely distributed version of OpenCOBOL is likely 1.1 from February 2009.
Roger continued with closed releases up until September 2012.
GNU accepted the OpenCOBOL project as an official GNU project in September 2013 and OpenCOBOL was rebranded as GNU Cobol. At this point, the unpublished work in progress version of OpenCOBOL 2.0 was pre-released along with an official GNU Cobol 1.1 source kit, rebranded from the OpenCOBOL 1.1 February 2009 sources, with a few small fixes.
A GNU Cobol 1.1 release and the reveal of three years of closed 2.0 pre-release work made for two public versions in October of 2013.
Along with the works of Sergey, Joe, and Ron, there are now 5 working copies of GnuCOBOL.
GNU Cobol 1.1 has been marked release, with support for SCREEN SECTION
SourceForge SVN also hosts newer versions:
fileiorewrite is the work of Joe Robbins to simplify the ISAM runtime and extend it. It is a work in progress branch of GnuCOBOL 2.0. This project has a long term timeline, and will be folded into the official GNU Cobol release sequence, sometime in the future.
Being involved in the closed releases, Sergey developed a C++ intermediate version which was publicly released shortly after Roger's 2.0 source kit was published. This project also has a long term road map. GnuCOBOL is C based. GnuCOBOL likely will stay split as two branches, or if possible, developers will be allowed to choose, both emitters included in cobc, controlled by switches. The future will determine how this unfolds.
GnuCOBOL 1.1x is an experimental branch and is NOT for public consumption. A branch for running experiments with an Animator (source level debugger) soon.
GnuCOBOL 2.0 is the pre-release branch, Simon hard at work organizing the next official release here. Still a work in progress.
reportwriter is Ron Norman's extensions based on early OpenCOBOL 2.0 closed releases, and adds the Report Writer module to GnuCOBOL. This work will be folded into the official 2.0 source kit after the 2.0 release and will be the major change for the 2.1 release. Earlier marked as GNU Cobol 2.1, where it will be when "official", but changed back to GnuCOBOL reportwriter. There is no official 2.1 yet, we have to wait until the 2.0 release candidate is solidified.
GNU Cobol 1.1 release, is still trunk.
Deciding on a version? ALL of these branches (except for 1.1x) are working branches of GnuCOBOL. They all pass the integrity checks and the NIST COBOL 85 validation suite (leaving out RW for all but the one branch we have for it). Usually; works in progress being works in progress, and there may be commits that don't work out, usually, fixed quickly.
Once again, ALL the branches, except for gnu-cobol-1.1x, are working COBOL compilers.
GNU Cobol 1.1 is currently official, with GnuCOBOL 2.0 on the horizon.
Oh, and you may bump into OpenCOBOL 1.0 and OpenCOBOL 1.1 versions in GNU/Linux repositories. Working COBOL compilers.
Can be found at http://opencobol.add1tocobol.com/guides. Direct link to two docs:
A superb manual by Gary Cutler can be found at
FAQ and How-To at
As a GNU project, info cobc, after an install, will display online documentation as well as cobc supporting --help.
While efforts are underway to assign all copyrights for the GNU Cobol compiler sources to the Free Software Foundation, currently:
Copyright (C) 2001-2009 Keisuke Nishida
Copyright (C) 2007-2012 Roger While
Copyright (C) 2012-2015 Simon Sobisch
Copyright (C) 2012-2015 Sergey Kashyrin
Copyright (C) 2012-2014 Joe Robbins
Copyright (C) 2013-2015 Ron Norman
Copyright (C) 2011, 2015 Brian Tiffin
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 (for OpenCOBOL and
GnuCOBOL / GNU Cobol versions prior to 2.0), or GPL version 3
(for GnuCOBOL / GNU Cobol 2.0 or later) or (at your option) any
Files in the libcob/ directory, the GnuCOBOL run time system, are
licensed under the LGPL 2 (LGPL 3 for 2.0 and up).
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
currently, version 1.1
The wiki has pages for
Discussion: GNU Cobol is now a real thing
Wiki: COBOL acknowledgement
Wiki: For Maintainers
Wiki: Gary Cutler Files
Wiki: GnuCOBOL ToDone
Wiki: GnuCOBOL project members
Wiki: Install Guide
Wiki: User Manual