Cobol (COmmon Business -Oriented Language). Universal programming language, created in 1960 and is business oriented.
Summary
[ hide ]
- 1 Story
- 2 Features
- 3 “Hello world” program
- 4 Sources
- 5 External links
History
The commission CODASYL , composed of computer makers, users and the Department of Defense United States participated in the creation of this language in May of 1959 , but was only 6 months later when the definition of the language was completed, and was approved by the commission in January of 1960 .
The participation of Cobol users allowed it to evolve very quickly and in a review carried out between 1961 and 1965 new features were added.
The first ANSI version of Cobol came out for 1968 , and after two more revisions it was expanded in 1989 with mathematical functions , ending the standard that is currently used the most and is known as COBOL-ANSI , and in 2002 the COBOL-ANS2002 version came out . A new revision is currently being worked on.
There is also a version known as COBOL ENTERPRISE , released in 1991 and used mainly on Host systems .
characteristics
- This language has very good self-documentation capabilities.
- It also has good file management and data type management.
- Cobol uses base 10 numbers to avoid rounding errors in calculations that occur when converting numbers to binary.
- The syntax was created in a similar way to the English language, to avoid the use of symbols that were used in later programming languages.
- From the 80s, variables, recursion , dynamic memory reserve and structured programming are incorporated ; it was becoming obsolete in the face of new programming paradigms .
- In 2002object orientation was added.
Hello world program
IDENTIFICATION DIVISION.
PROGRAM-ID. Regards.
*
ENVIRONMENT DIVISION.
*
DATA DIVISION.
WORKING-STORAGE SECTION.
*
PROCEDURE DIVISION.
START.
DISPLAY ‘Hello world’.
STOP RUN.