Structuring your program
COBOL
programs consist of four divisions: IDENTIFICATION DIVISION
, ENVIRONMENT
DIVISION
, DATA DIVISION
, and PROCEDURE
DIVISION
. Each division has a specific logical function.
To
define a program, only the IDENTIFICATION DIVISION
is
required.
To define a COBOL class or method, you need to define some divisions differently than you do for a program.