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 difference between COBOL and VS COBOL II?.

1 Answers   Winsol Solutions,


Without using move verb how to move one variable to another.

5 Answers  


how can you identify wheather the program is using search or search all in the cobol program?

5 Answers   iGate,


How can we increase the size of an existing PDS to include more no. of modules.

3 Answers  


What is Redefines clause?

8 Answers  






How can i load all the data from a file to Table (array) in cobol.How i manage the occurs clause with out reading the file.Any options avilable ? Please can any one help me it is urgent?

0 Answers   HeadStrong,


Sending data is aplhabetic size 7 (value 3000), I wantated this value to be stored in database, which is defined as s9(7)v9(2)comp-3.

2 Answers  


how we separate the cobol cics statements from cobol&cics programming?

1 Answers   Valtech,


Program A calls program B. Will the working storage variables declared in program B be initialized every time it is called by program A or will the values be retained until the end of program A?

7 Answers  


what is meant by binary search?

4 Answers  


after udatingg first 110 rows, my job abends. now how do i change my cobol program so that when i restart the Job it will start updating from 111th row ( i.e in next run I di=ont want to update those 110 rows which are already been updated in the first run before job abend)

7 Answers   Allianz, Wipro,


Can you call an OS VS COBOL pgm from a VS COBOL II pgm ?

3 Answers   Microsoft,


Categories