Jump to content

Programming Fundamentals/Introduction/COBOL

From Wikiversity

hello.cbl

[edit | edit source]
*> This program displays "Hello world!"
*>
*> References:
*>     https://open-cobol.sourceforge.io/doc/gnucobol.html

IDENTIFICATION DIVISION.
PROGRAM-ID. HELLO.

PROCEDURE DIVISION.
DISPLAY 'Hello world!'.

Try It

[edit | edit source]

Copy and paste the code above into one of the following free online development environments or use your own COBOL compiler / interpreter / IDE.

See Also

[edit | edit source]