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


Please Help Members By Posting Answers For Below Questions

How to remove 2 duplicate records and copy only one using job control language?

740


What is an in line perform? When would you use it? Anything else you wish to say about it.

641


What happens when we move a comp-3 field to an edited (say z (9). Zz-)?

770


How to get the last record in vsam file in cluster? And how can you get the ksds file records into your cobol program?

643


can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there

1900






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

692


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

620


What is amode(31)

716


Explain the configuration section of a cobol program with examples of syntax.

655


Explain sorting techniques in cobol program? Provide the sort file definition, the sort statement, its syntax and meaning

678


Which is the default, TEST BEFORE or TEST AFTER for a PERFORM statement?

819


how do you reference the rrds file formats from cobol programs

793


How can i load all the data from a file to Table (array) in cobol.How i manage the occurs clause with out reading the file.Any options avilable ? Please can any one help me it is urgent?

2093


System Testing for Mainframe Developers What is System Testing? integration testing ? what's the procedure ..

1586


EXPLAIN MAIN FRAME TESTING PROCESS...HOW TO FIX THE MAINFRAME BUGS?

2052