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 are various search techniques in cobol? Explain.
Difference between array and sub-script ?
what is the meaning of pic 9(09)v99-
How to open and see copy book ?
What is the difference between external and global variables in COBOL?
how do you reference the variable block file formats from cobol programs
Program A (Normal COBBAT) calling a B Program (DB2COBOL, COBBATDB which is using a VSAM file. its a dynamic call. How we will handle VSAM file decleration in our from JCL from where we are running A PGM. And should we have PLAN for A pGM also. if possible can some one post a sample JCL. Thanks for help in advance.
Explain the difference between an internal and an external sort, the pros and cons, internal sort syntax etc.
What is SQL Code -904 and -903 in DB2 And how to handle it?
01 A pic 9(100) find record length of it
What is report-item in COBOL?
Can we put move statement in COBOL copybook