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

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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Name the divisions, which are available in a cobol program?

912


Write a program that uses move corresponding.

857


How to find out the closest prime number of an input number? I believe it has something to do with SEARCH and COBOL Linear Array.

3933


How to use the same COBOL program in Batch and CICS on lines? explain with an example

2093


What is the difference between PIC 9.99 and 9v99 in COBOL?

958






how do you reference the printer file formats from cobol programs

877


What is the local-storage section?

871


For rewrite, why is it mandatory that file needs to be opened?

823


What is amode(24), amode(31), rmode(24) and rmode(any) (applicable to only mvsesa enterprise server) ?

893


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

954


What are the rules of the move verb?

929


What is amode(24)?

863


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

943


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

856


Our issue is there seems to be a disconnect, or no link, between our SELECT statement and our SD. We had SELECT SORT-FILE and SELECT SORT-FILE ASSIGN TO SORTWRK. ASSIGN TO SORTWRK1 SORTWRK2 SORTWRK3 SORTWRK4. with SD SORT_FILE RECORD CONTAINS 7833 CHARACTERS. In either case, at run time, the system ignored our SORTWRK# DD statements and allocated 16 sort works with the SORTWK## naming convention. Any ideas why the system does not recognize the connection? We do not even need the SORTWRK DD statements. Thanks

2582