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

Why would you use find and get rather than to obtain?

683


how can i see junk values in dclgen or in hostvariable of comp ?

2544


If you are current on the owner of a set, what is the difference between an obtain next and obtain first? Actually in which topic will we use dis???Plz explain it clearly

2658


What is the default value(s) for an initialize and what keyword allows for an override of the default?

695


how do you reference the ksds vsam file formats from cobol programs

666






How to fetch 1000 error records from VSAM file(Eg: 1000000 records present) while getting SOC7 abend ?

1936


Hi pls anybody tell me about " ANALYSIS DOCUMENT PREPARATION AND ESTIMATION OF TASK " (in real time project)."I want to update a sequential file in my project" for that purpose i need both structures i mean analysis document and estimation of task.

1701


What is the usage of comp fields in cobol?

658


) How do u handle errors in BMS macro

1508


INREC AND OUTREC? HOW TO SPLIT 5K RECORDS TO DIFFERENT FILES IN A FILE IN COBOL? RESTART IN COBOL-DB2? ISOLATION LEVELS?

419


Write a cobol program making use of the redefine clause.

731


How can we find that module can be called – whether DYNAMICALLY or STATICALLY?

710


what is amode(24), amode(31), rmode(24) and rmode(any)?

699


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.

5061


how do you reference the rrds file formats from cobol programs

798