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 |
can we use 77 level no for Redefines?if we use give an example?
The hierarchy of the execution of logical operators is (a) NOT AND OR (b) AND OR NOT (c) OR AND NOT (d) OR NOT AND
10 Answers Huawei, IBM, TCS,
how can u find out just by seeing wheater it is main program or sub program ? any two ways to identify reply soon ?
can internal sort be applied to sort ksds files?
SIGN TRAILING SEPARATE field occupy ?
How to read a record from bottom of a file which is indexed by 'A'.
I hv ten records in ps file and i hv say some 15 records in vsam file .i hv empno and age in ps file n empno,empname,dept n desig in vsam file. i hv 2 read the ps file n check wid matching empno in vsam file and then insert all fields from ps and vsam into db2 table....plz help in writin the procedure division
what is the difference between Plan & package
using redefine can you redefine lower variable size to higher variable size?
State the various causes of s0c1, s0c5 and s0c7.
can we use reference modification an arry.
what is meant by binary search?