OpenCOBOL

History

OpenCOBOL was developed to be part of the gcc for linux. Keisuke was the lead developer, released version 0.31 project in 2005  , after that Roger took the project on their hands released version 1.0 in 2007 and work in the new version 1.1, which is currently in pre-development.

OpenCOBOL platform compile Cobol language and transforms it into C code or object code or in the form of a dynamic library are executed natively.

The documentation of OpenCOBOL as expected by the nature of the project has been released under the GNU Free Documentation License. And is available in OpenCOBOL.org

Program

Traditional Program


000100 * HELLO.COB OpenCOBOL FAQ example
000200 IDENTIFICATION DIVITION.
000300 PROGRAM-ID. Hello.
000400 PROCEDURE DIVITION.
000500    DISPLAY “Hello world! ”.
000600    STOP RUN.

How to compile


$ cobc -x HELLO.COB

How to execute


$ ./HELLO

Sample.


Hello world!

Modern program


*> OpenCOBOL Hello World example
identification division.
Program-id hello.
Procedure division.
Display “Hello World!” end-display
goback.

Short Form.


Programa-id.hello.procedure division.display “Hello World!”.

How to compile


$ cobc -x free hello.cob

How to execute.


$ ./hello

Sample.

Hello World!

 

For more information see OpenCOBOL.org