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 is the difference between a binary search and a sequential search?
Define REDEFINE clause and Is it possible to have the redefine clause anywhere in the working storage section for a data name?
i have the job which has written updated 100 records into the table and for 101th record it got abended and i want to start the job again and should wirte from 101th record not from 1st record..how to do it..?
Study the DATA DIVISION entries and the three PROCEDURE DIVISION entries given below: 01 END-OF-FILE-SWITCH PIC XXX. 88 NO-MORE-RECS VALUE "YES". 88 MORE-RECS VALUE "NO". (i) READ SAMPLE-FILE AT END MOVE "YES" TO NO-MORE-RECS. (ii) IF NO-MORE-RECS = "YES" GO TO LAST-PARA. (iii) IF NO-MORE-RECS GO TO LAST-PARA. Which are wrong? (a) (i) and (ii) (b) (ii) and (iii) (c) (i) and (iii) (d) all
What is an in-line perform ?
input:- 12233344445555566666... output:- 1=1,2=4,3=9... Here firstno i.e 1 should be displayed and after that the alikeno.s should be added n displayed.i.e 2+2=4 like tat it goeson.
Whtz the specialty of 77 level number ?
hw to create 3 dimensional array & hw to access it?
why we are using set in searchall?
If I want to increase the Limit in GDG. What should I do?
What is amode(31)
How to code fscode 10 in cobol program? Where yoy code in your pgm?give ans for the question.