Summary -

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 -

Syntax -

DATA DIVISION Syntax

If sections are coded in the program, those should code in the same order shown in the syntax.