|
Answer» There are mainly 4 divisions in a COBOL program, they are: - IDENTIFICATION DIVISION: This is the most important division that is used for IDENTIFYING the program. This division is needed for any COBOL program to RUN. If this division is not included in your program, then the program cannot be compiled.
- ENVIRONMENT DIVISION: This division is subdivided into 2 types - Configuration and Input-Output section. They define the written program’s environment.
- DATA DIVISION: This division is used for identifying the data items, allocating proper MEMORY and defining the names within the program. It also has a file, linkage section and working storage.
- PROCEDURE DIVISION: This division supports the main LOGIC of the program. It should consist of at least one statement for using user-defined variables.
|