What divisions, sections and paragraphs are mandatory for a
COBOL program?

Answers were Sorted based on User's Feedback



What divisions, sections and paragraphs are mandatory for a COBOL program?..

Answer / where the way begins

IDENTIFICATION dIVISION AND PROGRAM id ARE MANDATORY

Is This Answer Correct ?    31 Yes 2 No

What divisions, sections and paragraphs are mandatory for a COBOL program?..

Answer / avinanda mukherjee

IDENTIFICATION DIVISION AND PROGRAM ID IS MANDATORY..

Is This Answer Correct ?    19 Yes 2 No

What divisions, sections and paragraphs are mandatory for a COBOL program?..

Answer / guest_1

In order to compile and run a COBOL program under MVS,

ID DIVISION.
PROGRAM-ID. DUMMY.

are more than enough.

Is This Answer Correct ?    15 Yes 2 No

What divisions, sections and paragraphs are mandatory for a COBOL program?..

Answer / hari

Id division.
Program-id. pgmname.
Procedure division.
STOP RUN.

Is This Answer Correct ?    11 Yes 9 No

What divisions, sections and paragraphs are mandatory for a COBOL program?..

Answer / sanj

IDENTIFIACTION DIVISION.
PROGRAM ID. DUMMY.

compiles successfully and returns MAXCC = 0.

Is This Answer Correct ?    3 Yes 1 No

What divisions, sections and paragraphs are mandatory for a COBOL program?..

Answer / sharath

ID division.

Procedure Division

Above 2 divisions are mandatory

Is This Answer Correct ?    4 Yes 10 No

What divisions, sections and paragraphs are mandatory for a COBOL program?..

Answer / 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

What divisions, sections and paragraphs are mandatory for a COBOL program?..

Answer / elite group

Identification, Data Divison & procedure division.

If any files are there file-section. working storage section

Is This Answer Correct ?    4 Yes 19 No

Post New Answer

More COBOL Interview Questions

what is difference between the sysabend and userabend?

2 Answers  


How to fetch 1000 error records from VSAM file(Eg: 1000000 records present) while getting SOC7 abend ?

0 Answers  


How do you get the data to code the BMS macro?

0 Answers   IBM,


using redefine can you redefine lower variable size to higher variable size?

3 Answers   Patni,


OCCURS clause is used in the DATA DIVISION on data names at (a) 01 level (b) 77 level (c) 88 level (d) any level from 02 to 49

13 Answers   TCS,






If you are current on the owner of a set, what is the difference between an obtain next and obtain first? Actually in which topic will we use dis???Plz explain it clearly

0 Answers  


how we rectify soc7 and soc4 errors in project?

1 Answers   Anaxis, TCS,


what is sync clause?

2 Answers   DELL,


can we use COPY statement in w-s section? how?

3 Answers  


what is s000 u4087 error? please give the all error codes in cobol,jcl.

0 Answers  


how can you identify wheather the program is using search or search all in the cobol program?

5 Answers   iGate,


01 MOVE 10 TO N 05 PERFOM PARA1 TIMES STOP RUN WAT WILL HAPPEN?? WILL IT RUN INFINITELY OR AN ERROR WIL BE THER BECAUSE NO OF TIMES IS NOT GIVEN??

1 Answers  


Categories