COBOL Divisions

  • A division is one of the primary components of a program, that organizes its code and functionality.
  • It is a collection of one or more sections and paragraphs.
  • Division begins with the division name and ends at the beginning of the subsequent division or the program ends.
  • All divisions are system-defined and should begin in Area A.

COBOL has four system-defined divisions, and those are -

DivisionsDescriptions
IDENTIFICATION DIVISION It provides metadata about the program, such as its name, author, installation, and other descriptive information used to uniquely identify the program.
ENVIRONMENT DIVISION It is responsible for specifying the computer environment (mostly computer name in mainframe environment) on which the program is compiled and executed.
DATA DIVISION It is responsible for declaring the variables used to process the data in the application program.
PROCEDURE DIVISION The actual logic will be written in PROCEDURE DIVISION, which is responsible for carrying out the data processing tasks.