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
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 |
Answer / jraj
Its 4
Identification Division, program ID,Procedure division and
Stop Run
Is This Answer Correct ? | 5 Yes | 2 No |
Answer / pratap
Hi All,
Only first two lines are enough for successful compilation
for a program.
Is This Answer Correct ? | 5 Yes | 2 No |
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 |
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 |
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 |
What is the meaning of 'Eject' verb in cobol?
How to Write the RESTART Logic Using COBOL?
4 Answers GalaxE, L&T, Syntel, TCS,
how would find total records in files using seqientional
A cobol program to read a file , match it with other if. If match occurs then write it to an output file. If no match then no need to write it.Error log created by program to track any error.
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.
What is binary search?
What is the use of intialize verb?
How to traceback if I am getting SOC7 or SOC4 abend? List down the steps
how many bytes does s9(7)COMP-3 field occupies?
How do you fetch current date in normal cobol pgm and in cobol-db2 pgm?
which of the following can be used as a check protection symbol a.Z b.S c.* d.+
how to fetch the record before the last record in a cobol file( its a huge file and if the key field is not known)