COBOL
COBOL is one of the oldest programming languages and has been pronounced dead many times.
The abbreviation stands for COmmon Business Oriented Language and was primarily developed for finance, business and administration.
Still running in many banks, processing financial transactions in the background every day all over the world, I decided to teach myself some COBOL.
Yes, I know: It is not sexy, but it will pay and it is actually fun learning something pretty different from modern programming languages.
Every program needs to "make" decisions at some point.
To achieve this COBOL provides conditional clauses like IF.
Syntax
IF condition (THEN)
PERFORM DO SOMETHING.
ELSE
PERFORM DO SOMETHING ELSE
END IF.
- Hits: 2258
Let's have a look at a very basic Hello World example written in COBOL compatible with older versions of COBOL compilers.
Building blocks of a COBOL program
- Hits: 2241
Page 2 of 2