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 |
What are the different data types in cobol?
What is the maximum length of a field you can define using COMP-3?
4 Answers Complex System, Infosys,
01 a pic 9(3) value is 123 01 b pic 9(6) move a to b wht will be the value ? and 01 a pic x(6) value is abc 01 b pic x(3) move a to b wht will be the value ?
What is the difference between external and global variables in COBOL?
Whats the difference between search & search ALL?
What is the difference between a subscript and an index in a table definition?
What will happen if you code GO BACK instead of STOP RUN in a stand alone COBOL program ?
8 Answers Arigo Infotech, IBM,
I want ALL ERROR codes in VSAM
3 Answers American Express, TCS,
how to resolve the file status 47.......
here is my requirement A1 is alphanumeric with value 'A1B2C3D4' as defined below 05 A1 PIC X(8) VALUE IS 'A1B2C3D4' but i need to have A2,A3 as ABCD & 1234 repectively...... A2 = ABCD A3 = 1234 Can you please explain me what are the different ways to do it?
whats the difference between search and search all?
How will 128 be saved in s9 (3) comp-3 How will 12 be saved in s9 (2) comp