is it mandatory to give data division before procedure division ?
wht happens if i give procedure division first thn data division
? reply soon
Answer Posted / paray2x
You will get compilation error.
All the files,identifiers, literals used in Procedure
Division have to defined first.
It is imperative for the Data division to appear before
procedure division.
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
i made it to stage 3 of an interview process wednessday they will quiz my knowledge again face to face for an analyst role recruiter said it will be based on Business requirements system is cobol and good ideas what they might ask etc
What kind of error is trapped by on size error option?
Differentiate cobol and cobol-ii. (Most of our programs are written in cobolii, so, it is good to know, how, this is different from cobol)?
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.
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 is amode(31)
How many sections are there in data division in COBOL?
How you can characterize tables in cobol?
What are the different rules for performing sort operation?
How arrays can be defined in COBOL?
how do you define single dimensional array and multidimensional array in your cobol?
Write down the divisions of cobol program?
how do you reference the fixed unblock file formats from cobol programs
How to read the 2nd last record of a VSAM file? (The file size is huge and we don't know the key)
Why do we code s9 (4) comp. Inspite of knowing comp-3 will occupy less space?