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 Control Break processing ?

1 Answers   iGate,


What is the difference between external and global variables in COBOL?

0 Answers   Winsol Solutions,


What is the difference between a binary search and a sequential search?

10 Answers  


which is Best IBM Mainframe Training and Placement Institute in Ameerpet Hyderabad

0 Answers  


How can you display the SPOOL information ?

2 Answers  






In the JCL, how do you define the files referred to in a subroutine ?

2 Answers  


How to remove 2 duplicate records and copy only one using job control language?

0 Answers  


A LESS 1200 IF B GREATER 25 MOVE 47 TOC ELSE MOVE 57 TO C IF A GREATER 249 MOVE 67 TO C ELSE NEXT SENTENCE ELSE IF B LESS 67 MOVE 27 TO C What will be the value of C, when A is 137 and b is 25

3 Answers   TCS,


what is the difference between Normal vaiable and comp variable.

5 Answers   DELL,


In COBOL CALL-CALLING,if a program A is calling 3 sub- programs, dynamically, then it is said sub-programs will always will always in Initial Mode. My question is : Do we need to code CANCEL or (IS INITIAL) for dynamically called sub-programs or it is the property of Dynamically called pgms so every time sub-pgms are called they will be in initial mode. ***This question is only Dynamic call****, Please reply. Thank you in advance.

4 Answers   Wipro,


have in 100 records in a flat file i want to move records like 1,3,5,7,9,11,.. to Output file1 and 2,4,6,8,10,12,14 .. records moved to Output file2..Pls Provide real time answer..

5 Answers   TCS,


how do you move only numeric data from A to B 01 A pic x(10) value 'a1b2c34d5e'. 01 B pic x(5).

2 Answers   DELL, Mind Tree,


Categories