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 |
hi dudes.....can any one help me..... what is SET TO TRUE all about,anyway?
without performing any operations on a file how can i know whether it contains data or not
What should be the sorting order for SEARCH ALL?
What is cobol?
after udatingg first 110 rows, my job abends. now how do i change my cobol program so that when i restart the Job it will start updating from 111th row ( i.e in next run I di=ont want to update those 110 rows which are already been updated in the first run before job abend)
what is the advantage of sync class
hi, can you ppl tell me, how to check whether the rewrite we gave for the ksds file is successful or not in the program.? i gave rewrite, the rewrite code is executing and maxcc=0 but updation doenot happen in the file?
IF I mention stop run in CICS what happens?
What are different file OPEN modes available in COBOL?
How to get the last record in vsam file in cluster? And how can you get the ksds file records into cobol program?
How can i load all the data from a file to Table (array) in cobol.How i manage the occurs clause with out reading the file.Any options avilable ? Please can any one help me it is urgent?
What is 66 level number and where it is used in real time by software developers?
2 Answers ITC Indian Tobacco Company, TCS,