Getting started with COBOL

xiaoxiao2021-03-06  22

COBOL (Common Business Oriented Language) is the first high-quality programming language. It can be seen from the name that it is mainly for the processing of business information. COBOL values ​​the processing of data entry input / output records, providing a simple processing method for files with large amounts of data. But compared to C language or Fortran languages, COBOL's numerical operation, logical computing ability is relatively weak.

The latest standard COBOL 2002 main body is published in December 2002, and other parts are still constantly perfect. Please refer to http://www.cobolstandards.com/

Why use COBOL? As a high-level programming language, COBOL has huge user groups and code, which is said to have a program written by COBOL to exceed 10 billion rows (Cobol.org). It seems that history gives a special mission of COBOL language. In addition, as long as the mainframe is present, it is also necessary to run the COBOL program, and many senior programmers have become accustomed to COBOL, new programmers (for example, me) to join the mainstay environment (for example, I) have to start using COBOL. In fact, Cobol also has some advantages, such as its strong control of the display format of the data.

COBOL (Common Business Oriented Language) is the first high-quality programming language. It can be seen from the name that it is mainly for the processing of business information. COBOL values ​​the processing of data entry input / output records, providing a simple processing method for files with large amounts of data. But compared to C language or Fortran languages, COBOL's numerical operation, logical computing ability is relatively weak.

The latest standard COBOL 2002 main body is published in December 2002, and other parts are still constantly perfect. Please refer to http://www.cobolstandards.com/

Why use COBOL? As a high-level programming language, COBOL has huge user groups and code, which is said to have a program written by COBOL to exceed 10 billion rows (Cobol.org). It seems that history gives a special mission of COBOL language. In addition, as long as the mainframe is present, it is also necessary to run the COBOL program, and many senior programmers have become accustomed to COBOL, new programmers (for example, me) to join the mainstay environment (for example, I) have to start using COBOL. In fact, Cobol also has some advantages, such as its strong control of the display format of the data.

Simple COBOL program introduces a simpler programming language to print a "Hello World!" On the screen, then we have started learning from this program. Here is this simple program: Identification Division. Program-id. Hello. * Environment Division. * Data Division. * Procedure Division.  * This is a note.  Display 'Hello World!'. This simple example can be used Cere: int main (void) {printf ("Hello World!"); Return 0;} It can be seen that Cobol compares eight shares, even the simplest program, must have four basic parts: identification department, environment, Data units and procedures. Not only that, the writing programs must also follow the fixed planning format.

Reference: http://www.zedware.org/

转载请注明原文地址:https://www.9cbs.com/read-65540.html

New Post(0)