what is the minimum number of lines a Cobol program should
have to successfully compile and run
Answers were Sorted based on User's Feedback
Answer / nimsatprasad
First 2 lines are enough to minimum successfully compile
the cobol program
IDENTIFICATION DIVISION.
PROGRAM-ID. COVANSYS.
PROCEDURE DIVISION.
DISPLAY 'COVANSYS'.
STOP RUN.
| Is This Answer Correct ? | 7 Yes | 1 No |
Answer / jraj
Its 4
Identification Division, program ID,Procedure division and
Stop Run
| Is This Answer Correct ? | 5 Yes | 2 No |
Answer / pratap
Hi All,
Only first two lines are enough for successful compilation
for a program.
| Is This Answer Correct ? | 5 Yes | 2 No |
Answer / khamuruddin mohammed
Indentification Division
program-id
That's it..pgm will compile with the above 2 lines
| Is This Answer Correct ? | 2 Yes | 2 No |
Answer / patrick jones
There's a little bit of 'theoretical' problem here. As a
program is 'a set of instructions to do a particular job',
the 'two line program' is not actually a program eventhough
it will be compiled successfully.
So I would go with Ans# 1.
| Is This Answer Correct ? | 0 Yes | 2 No |
Answer / vijay
technically it is mentioned a flow chart to compile the
cobol programming so i prefers that 4 lines.
IDENTIFICATION DIVISION.
PROGRAM-ID. VIJAY.
ENVIRONMENT DIVISION.
PROCEDURE DIVISION.
DISPLAY ' ALL THE BEST FOR YOUR BRIGHTEST FEATURES'
STOP RUN.
| Is This Answer Correct ? | 0 Yes | 3 No |
comp-3 field occupy?
what happens when a copybook variables are declared using include statement ?
How many bytes will be allocated for the following record description entries? 01 REC-A. 05 A PIC S9(4). 05 B PIC XXXBXXX. 05 C PIC ____9.99. 05 D PIC S9(5) COMP-3. 05 E PIC 9(3) COMP.
16 Answers IBM, TCS,
What is the difference between NEXT SENTENCE and CONTINUE?
01 a pic s9(5) value -12345, if we disply a , the sign will overpunched with last digit but i need to get the miuns sign in the result?
What is file status 92?
What is amode(24), amode(31), rmode(24) and rmode(any) (applicable to only mvsesa enterprise server) ?
how we sort two input files based on a common column and giving one o/p file please send me the coding logic?
What is the default value(s) for an initialize and what keyword allows for an override of the default?
maximum of how many screens we can open in emulator
If by mistake we MOVE a working storage variable into LINKAGE area. What will happen??
How to execute a set of JCL statements from a COBOL program?