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



what is the minimum number of lines a Cobol program should have to successfully compile and run..

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

what is the minimum number of lines a Cobol program should have to successfully compile and run..

Answer / jraj

Its 4
Identification Division, program ID,Procedure division and
Stop Run

Is This Answer Correct ?    5 Yes 2 No

what is the minimum number of lines a Cobol program should have to successfully compile and run..

Answer / pratap

Hi All,

Only first two lines are enough for successful compilation
for a program.

Is This Answer Correct ?    5 Yes 2 No

what is the minimum number of lines a Cobol program should have to successfully compile and run..

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

what is the minimum number of lines a Cobol program should have to successfully compile and run..

Answer / kk

hi,
just two lines enough for with out display anything.it will
successfully compiled and run

Is This Answer Correct ?    1 Yes 1 No

what is the minimum number of lines a Cobol program should have to successfully compile and run..

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

what is the minimum number of lines a Cobol program should have to successfully compile and run..

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

Post New Answer

More COBOL Interview Questions

What is the difference between index and subscript?

5 Answers   Visa,


Wat is the difference between NEXT and CONTINUE statement in cobol,can any one explain with example.

11 Answers   Deloitte,


I hav vari declaration like..... 77 a pic s9(9).99. 77 b pic s9(9).99 comp. 77 c pic s9(9).99 comp-3. if i use MOVE 123456789.99 to a,b,c what happen every one working fine ?

1 Answers   Mphasis,


what is sort? whis is internal & external sort ?when do u go for inter sort & external sort? tell about some sort utilites?

2 Answers   BirlaSoft,


What is the use of intialize verb?

0 Answers  






WORKING-STORAGE SECTION. 01 VAR1 COMP-2 VALUE 0. PROCEDURE DIVISION. MOVE 10.2115 TO VAR1. DISPLAY 'VAR1 =' VAR1. GOBACK. 10.2115 is stored as .10211499999999996E 02 in OS VS Cobol 10.2115 is stored as .10211500000000000E 02 in ecobol. Any reason why?

3 Answers   TCS,


when COMP-3 is preferrable?

3 Answers   Patni,


What is the meaning of 'Eject' verb in cobol?

2 Answers   TCS, Wipro,


explain sorting techniques in cobol program?

0 Answers  


what will happen if pass values more than 100 using PARM parameter?

1 Answers  


I have a COBOL main program which is calling sub program, the number of calling parameters used in main program are 4 whereas in sub program it's 5. Sub program is passing 5 parameters back to main program Will there be any compilation error? Or main program parameters displays junk values?

1 Answers  


What will happen if we try to create GDG (+2) generaton instead of (+1) generation?

1 Answers  


Categories