what is the minimum number of lines a Cobol program should
have to successfully compile and run

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how do you reference the fixed unblock file formats from cobol programs

678


Explain sorting techniques in cobol program? Provide the sort file definition, the sort statement, its syntax and meaning

651


What is Pic 9v99 Indicates in COBOL?

690


What kind of error is trapped by on size error option?

713


input 1 input2 ouput1 output2 output 3 1 re 300 1 re 200 1 re 300 3 rc 500 1 re 200 2 rr 400 1 re 300 2 rr 400 1 rc 400 3 rc 500 1 rc 400 2 rr 700 2 rr 700 5 tt 900 5 tt 900 2 inputs r in flat file and output 1 is matched records,ouptput2 is unmatched of input1,output3 is unmatched of input2! how vl u get the output files using sequential order and to check with each and every records! let me know the procedure division ?

1841






Explain how to differentiate call by context by comparing it to other calls?

660


In COBOL, what is the different between index and subscript?

732


Write down the divisions of cobol program?

638


What is rmode(24)

657


How do you code cobol to access a parameter that has been defined in jcl? And do you code the parm parameter on the exec line in jcl?

670


What is the difference between perform … with test after and perform … with test before?

843


What is the LINKAGE SECTION used in COBOL?

852


What are the various section in data division and briefly explain them.

667


There are 5 fields and 1000 records in a file. Unload it into an array. Write the syntax for declaration and how will you unload it.

907


Describe the cobol database components?

649