Program Structure of COBOL Last Updated : 14 Jun, 2022 Summarize Comments Improve Suggest changes Share Like Article Like Report COBOL is a programming language that was developed to solve business problems. COBOL stands for Common Business Oriented Language. Being a High-Level Structured Language, COBOL is very similar to English-like language, which is used to develop major business applications. Due to its easier maintenance, ability to work with any database (DB2, VSAM), and ability to handle huge volumes of data, COBOL is used for handling a wide range of traditional business scenarios like retail sales tracking, inventory control, contact management, commissions, and payroll systems. COBOL programs are made up of similar constructs such as paragraphs, sentences, statements, and clauses. The hierarchy of a COBOL program is shown in the following diagram. The Division is a block of code, usually containing one or more sections. It starts where the division name is encountered and ends with the beginning of the next division or with the end of the program text. COBOL Program Divisions:IDENTIFICATION DivisionENVIRONMENT DivisionDATA DivisionPROCEDURE Division Example: Cobol IDENTIFICATION DIVISION. *>Line 1 PROGRAM-ID. GFG. *>Line 2 ENVIRONMENT DIVISION. *>Line 3 DATA DIVISION. *>Line 4 PROCEDURE DIVISION. *>Line 5 PROGRAM-BEGIN. *>Line 6 DISPLAY "GEEKS FOR GEEKS".*>Line 7 PROGRAM-DONE. *>Line 8 STOP RUN. *>Line 9 Output: Explanation: Lines 1,2 IDENTIFICATION DIVISION (Mandatory): This division is used to identify basic information about the program. In this example, the IDENTIFICATION DIVISION contains only the PROGRAM-ID, GFG.Line 3 ENVIRONMENT DIVISION (Optional): It is used to identify the environment in which the program is runningLine 4 DATA DIVISION (Optional): It contains any data that the program operates on. As the program has no data, So the DATA DIVISION is empty.Line 7 DISPLAY statement used to transfer the data to the output device/screen.Line 9 STOP RUN (Mandatory): This is the final executable statement that marks the end of the program after which the control returns back to the Operating System. Comment More infoAdvertise with us Next Article COBOL - Copy Statement S sayanc170 Follow Improve Article Tags : COBOL COBOL-Basics Similar Reads Sequence Programming Construction in COBOL COBOL (Common Business-Oriented Language) supports sequence programming construction through the use of sections, paragraphs, and sentences. A section is a group of paragraphs, a paragraph is a group of one or more sentences, and a sentence is a single statement. The structure of a COBOL program typ 2 min read COBOL - Copy Statement COPY statement is used to bring into a program a series of prewritten COBOL entries that have been stored in a library. A copy statement inserts the copybook inside a COBOL program, copybook refers to a member which holds all the variables declared inside it. The COPY statement is a library statemen 2 min read Internal Sort in COBOL Internal Sequential files are often used in big data operational processing applications, necessitating the records to be arranged in an operational ascending or descending order. This ensures quick access to the data and makes it easier to retrieve. Furthermore, sorting data in a file or combining 4 min read Subroutines in COBOL Subroutines in COBOL are small programs that are compiled independently but cannot be run directly. Cobol subroutine is a small program that can be compiled independently but cannot be run directly. There are two types of COBOL  subroutines- internal subroutines and the external subroutines Call Ver 3 min read Loop Statements in COBOL Every programming language not only has a selection construct but also one that involves iteration. With this construct, it is possible for a block of code to run repeatedly. In fact, the programmer himself can code it in by selecting a specific type of loop. Speaking of types of loops, modern prog 8 min read Programming Construction in COBOL COBOL is a compiled, imperative, procedural programming language designed for business use. It can handle very large numbers and strings. COBOL is still in use today because it's robust, with an established code base supporting sprawling enterprise-wide programs. Learning to program in COBOL will se 5 min read Like