is it mandatory to give data division before procedure division ?
wht happens if i give procedure division first thn data division
? reply soon

Answers were Sorted based on User's Feedback



is it mandatory to give data division before procedure division ? wht happens if i give procedure d..

Answer / sarang sangeet

THE COMPILATION JOB GETS ABENDED WITH MAXCC=12.

Is This Answer Correct ?    11 Yes 0 No

is it mandatory to give data division before procedure division ? wht happens if i give procedure d..

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

More COBOL Interview Questions

how we rectify soc7 and soc4 errors in project?

1 Answers   Anaxis, TCS,


input 1 input2 ouput1 output2 output 3 1 re 300 1 re 200 1 re 300 3 rc 500 1 re 200 2 rr 400 1 re 300 2 rr 400 1 rc 400 3 rc 500 1 rc 400 2 rr 700 2 rr 700 5 tt 900 5 tt 900 2 inputs r in flat file and output 1 is matched records,ouptput2 is unmatched of input1,output3 is unmatched of input2! how vl u get the output files using sequential order and to check with each and every records! let me know the procedure division ?

0 Answers  


What do you feel makes a good program?

2 Answers  


can we display comp-3 variables. if we want to display what we have to do . give me one example

6 Answers   CGI, Deloitte,


In a COBOL II PERFORM statement, when is the conditional tested, before or after the perform execution?

3 Answers  






How include time & date in the report generation in cobol programing?

2 Answers  


hi dudes.....can any one help me..... what is SET TO TRUE all about,anyway?

1 Answers  


Can we use icetool in cobol program?

3 Answers  


I have a Main Program which is calling Sub-Program which is a DB2 pgm. What will happen if I am not closing the cursor used in the Sub-program? Please advise..

3 Answers   iGate,


What are differences between Static Call and Dynamic Call?

10 Answers   IBM, KBC, Keane India Ltd, Verizon,


With in these three which one is the default one Call Reference, Call By Value, Call By Content.-Which one is default?

4 Answers   IBM,


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

0 Answers  


Categories