What divisions, sections and paragraphs are mandatory for a
COBOL program?
Answers were Sorted based on User's Feedback
Answer / where the way begins
IDENTIFICATION dIVISION AND PROGRAM id ARE MANDATORY
| Is This Answer Correct ? | 31 Yes | 2 No |
Answer / avinanda mukherjee
IDENTIFICATION DIVISION AND PROGRAM ID IS MANDATORY..
| Is This Answer Correct ? | 19 Yes | 2 No |
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 |
Answer / hari
Id division.
Program-id. pgmname.
Procedure division.
STOP RUN.
| Is This Answer Correct ? | 11 Yes | 9 No |
Answer / sanj
IDENTIFIACTION DIVISION.
PROGRAM ID. DUMMY.
compiles successfully and returns MAXCC = 0.
| Is This Answer Correct ? | 3 Yes | 1 No |
Answer / sharath
ID division.
Procedure Division
Above 2 divisions are mandatory
| Is This Answer Correct ? | 4 Yes | 10 No |
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 |
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 |
Which of the following files can be OPENed in all the 4 modes? The four modes are INPUT, I-O, OUTPUT and EXTEND. (a) INDEXED (b) RELATIVE (c) SEQUENTIAL (d) All of the above
what are the limitations of Inline Perform?
which one is better among static call and dynamic call?
I have a cobol program with a sub program. How ca i find that it is a dynamic call? or static call..?
what is ASRA, AEY9?
I need to compare two VSAM files, both having 'number' as key. If there is a matching record, write the data into another VSAM file. How will it be possible.
what is subscript in cobol?give realtime example?
What R 2 of the common forms of the EVALUATE STATEMENT ?
Should I use STOP RUN in the sub program??why?
If you are current on the owner of a set, what is the difference between obtain next and obtain first?
What is the meaning of 'Eject' verb in cobol?
Write a program that uses move corresponding.