Follow Our FB Page << CircleMedia.in >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...


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

i have n records in one file and in this file there is some fields and i want to count that how many sharma in my file so plz give the coding that how we read sharma ?

2 Answers  


i have two file one is ksds another one is esds i want store matching records in flat file how to you matching.

2 Answers   Wipro,


What is amode(24)?

0 Answers  


I want to remove a duplicates form a given input field using cobol program. please Any one help me out to solve this ... Thanks in Advance.

3 Answers   IBM,


why we are using set in searchall?

4 Answers   IBM,






in cobol perform stmt whether it first checks the condition or not

9 Answers  


How do you do in-line PERFORM?

3 Answers   Accenture,


What rules are to be followed while using the corresponding options?

0 Answers  


what is the default print format? in cobol

3 Answers   HSBC,


What is rmode(any) ?

0 Answers  


Difference between lrecl, blksize among PS, PDS issues? i.e in jcl at dcb

1 Answers  


what are the steps to sort in a cobol program?

2 Answers   Patni,






Categories