This is Tikiwiki v2.2 -Arcturus- © 2002–2008 by the Tiki community 2010/09/07 20:51 PDT

Menu [toggle]

Upcoming events

COBOL

Do you use COBOL?
OpenCOBOL 1.0
OpenCOBOL 1.1
OpenCOBOL Other
Other COBOL
Not Yet

View Results
(Votes: 112)
Print

OpenCOBOL

Next page TOC
Structure   (Top)   OpenCOBOL

Guide to OpenCOBOL

Table of contents:


Introduction

OpenCOBOL (external link) is an open-source COBOL (external link) compiler. OpenCOBOL implements a substantial part of the COBOL 85 and COBOL 2002 standards, as well as many extensions of the existent COBOL compilers.

OpenCOBOL translates COBOL into C and compiles the translated code using the native C compiler. You can build your COBOL programs on various platforms, including Unix/Linux, Mac OS X, and Microsoft Windows.

License

  • The compiler is licensed under GNU General Public License.
  • The run-time library is licensed under GNU Lesser General Public License.

Project home

The OpenCOBOL project has its own website at http://opencobol.org (external link) and the forums there are quite active with growing numbers of people discovering this comprehensive development system.

Getting Started

OpenCOBOL can be installed using one of the many pre-built packages or compiled from sources.

Packaged system example

For Debian GNU/Linux, use

Debian open-cobol package
# apt-get install open-cobol

and you should be good to go with OpenCOBOL 1.0 from December 2007.

You should now have access to the compiler, cobc, and a module run system, cobcrun. cobcrun is not a mandatory binary, cobc is more than capable of producing native executables, but cobcrun is very effective at assisting in Programming In The Large (external link) and Modular Programming (external link), a mainstay of COBOL development.

Building OpenCOBOL from sources

OpenCOBOL development archive
$ wget http://www.sim-basis.de/open-cobol-1.1.tar.gz
$ tar xvf open-cobol-1.1.tar.gz
$ cd open-cobol-1.1
$ ./configure
$ make
$ make check
$ su
# make install
# exit
$ cobc -V

    cobc (OpenCOBOL) 1.1.0
    Copyright (C) 2001-2008 Keisuke Nishida / Roger While
    Built    Dec 11 2008 15:32:37
    Packaged Dec 11 2008 20:05:34 CET

note that the 15:32:37 is Eastern Standard Time, so it isn't really time travelling.

What's next?

Using the Navigation bar of this structured document or the Table of contents, the next step is to see the Hello OpenCOBOL page and an introductory COBOL program example.

Warm welcomes

Cheers for looking at OpenCOBOL. You will not be disappointed by this system.



Created by: system. Last Modification: Friday December 12, 2008 19:10:53 PST by btiffin.

Category: Documentation