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
How do define dynamic array in cobol. how do you define single dimensional array and multidimensional array in your cobol?
What is difference between static and dynamic call in cobol?
What is cobol?
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?
What are declaratives and what are their uses in cobol?
Write a cobol program making use of the redefine clause.
What is the default value(s) for an initialize and what keyword allows for an override of the default?
A table has two indexes defined. Which one will be used by the SEARCH?
Why would you use find and get rather than to obtain?
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
Write down the divisions of cobol program?
How are the next sentence and continue different from each other?
What is rmode(24)
What are the rules of the move verb?
How do you reference the fixed block file formats from cobol programs