What divisions, sections and paragraphs are mandatory for a
COBOL program?

Answer Posted / guest

As you said giving IDENTIFICATION DIVISION & PROGRAM-ID is
mandatory in a normal cobol program. This is important for
a program to get compiled. But if you try executing the
program with these two statements alone, you will get SOC4
abend as your program tries to access a storage location to
which it was not authorized.

For a program to run successfully, all the 4 divisions and
the program-id paragraph are mandatory.

Is This Answer Correct ?    4 Yes 11 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do define dynamic array in cobol. how do you define single dimensional array and multidimensional array in your cobol?

696


What is difference between static and dynamic call in cobol?

766


What is cobol?

736


I need to compare 3 variables(dates) and do some processing based on the earliest date. There could be more then 1 date record in any of the 3 fields. What is the best way to code this?

1796


What are declaratives and what are their uses in cobol?

701






Write a cobol program making use of the redefine clause.

721


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

686


A table has two indexes defined. Which one will be used by the SEARCH?

748


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

673


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

2323


Write down the divisions of cobol program?

662


How are the next sentence and continue different from each other?

753


What is rmode(24)

674


What are the rules of the move verb?

695


How do you reference the fixed block file formats from cobol programs

693