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

1) can we display the index?

3 Answers   ADP, IBM,


wht is structured cobol pgm and non structred cobol pgm ?

1 Answers   CTS, DELL,


Can we dynamically increase the size of occurs clause? i.e In case I an not sure of the size of array and want to increase the size at run time.If yes , how?

1 Answers  


What is the use of EVALUATE statement?

4 Answers   Tesco,


What is an in-line perform ?

4 Answers   Accenture,






Write some characteristics of cobol as means of business language.

0 Answers  


I have 100 records in a file.. i want to sort the records from 5 to 5o... give the syntax...

2 Answers   CTS, DSRC,


how to resolve the file status 47.......

1 Answers   MMM,


what is Pic 9v99 Indicates?

2 Answers  


What are different file OPEN modes available in COBOL?

4 Answers   Sun Life,


Using string statement.Is coding three destination string from one source string possible in one code?or three codes for every destination string of one source string.?thank you

1 Answers   BPL,


01 x pic s9(8) comp. How will the following value be internally allocated '18787'

4 Answers   Steria,


Categories