What divisions, sections and paragraphs are mandatory for a
COBOL program?
Answer Posted / guest
As you said giving IDENTIFICATION DIVISION & PROGRAM-ID is
mandatory in a normal cobol program. This is important for
a program to get compiled. But if you try executing the
program with these two statements alone, you will get SOC4
abend as your program tries to access a storage location to
which it was not authorized.
For a program to run successfully, all the 4 divisions and
the program-id paragraph are mandatory.
| Is This Answer Correct ? | 4 Yes | 11 No |
Post New Answer View All Answers
What is the difference between PIC 9.99 and 9v99 in COBOL?
I have File 1 occurs 5 times with Employee-ID,Employee-Name,Employee-Dept (EEE and MECH). I have File 2 occurs 10 times with Employee-ID,Employee-Name,Employee-Dept (EEE,CIVIL,CHEMICAL and MECH). In FIle 1 and FIle 2 , for matching Employee-DEPT (Only MECH) , we need to move entire records from file1 to file 2. We should not use 2D array. Your help is needed here.
What is the Purpose of POINTER Phrase in STRING command in COBOL?
) How do u handle errors in BMS macro
What is the difference between binary search and sequential search?
how do you reference the esds vsam file formats from cobol programs
How do define dynamic array in cobol. how do you define single dimensional array and multidimensional array in your cobol?
i need a small 3d program using inline and outline.
What are the various section in data division and briefly explain them.
How to traceback if I am getting SOC7 or SOC4 abend? List down the steps
What is the difference between Call and a Link?
What are the different rules of SORT operation?
What is the difference between comp and comp-3 usage?
how do you reference the ksds vsam file formats from cobol programs
Differentiate cobol and cobol-ii. (Most of our programs are written in cobolii, so, it is good to know, how, this is different from cobol)?