In this topic, we described about the Data Division with detailed example.
DATA DIVISION defines the data items that are used in the program for data processing.
The DATA DIVISION is optional. Instead, each section in the DATA DIVISION has a specific logical function within a COBOL program.
The DATA DIVISION has mainly three sections -
If sections are coded in the program, those should code in the same order shown in the syntax.
Practicle Example -
A simple program for data division with file section and working-storage section