TIDE
Languages

COBOL

Installing COBOL on Ubuntu in TIDE

COBOL

COBOL (Common Business-Oriented Language) is a compiled English-like computer programming language designed for business use.

Installation

GnuCOBOL (formerly OpenCOBOL) is the open-source COBOL compiler available on Ubuntu:

apt update
apt install -y gnucobol

Verification

Check the compiler version:

cobc --version

Compilation & Execution

Create a hello.cob file:

       IDENTIFICATION DIVISION.
       PROGRAM-ID. HELLO.
       PROCEDURE DIVISION.
           DISPLAY "Hello, COBOL in TIDE!".
           STOP RUN.

Compile and run:

cobc -x -o hello hello.cob
./hello

Official Resources

On this page