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 |
1) can we display the index?
wht is structured cobol pgm and non structred cobol pgm ?
Can we dynamically increase the size of occurs clause? i.e In case I an not sure of the size of array and want to increase the size at run time.If yes , how?
What is the use of EVALUATE statement?
What is an in-line perform ?
Write some characteristics of cobol as means of business language.
I have 100 records in a file.. i want to sort the records from 5 to 5o... give the syntax...
how to resolve the file status 47.......
what is Pic 9v99 Indicates?
What are different file OPEN modes available in COBOL?
Using string statement.Is coding three destination string from one source string possible in one code?or three codes for every destination string of one source string.?thank you
01 x pic s9(8) comp. How will the following value be internally allocated '18787'