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

I am getting S00F abend when i try to compare two variable of different pic class,one variable is of 9(09) and another is S9(09) comp-3. First i moved the data from S9(09) comp-3 to 9(09), but no luck. So i tried to move the data from S9(09) comp-3 to X (09) and move to 9(09). I am getting same error message, Please help me to find solution for this ptoblem. ERROR MESSAGE - "The system or user abend S00F R=NULL was issued."

1 Answers  


what is Pic 9v99 Indicates?

2 Answers  


01 a pic 9(3) value is 123 01 b pic 9(6) move a to b wht will be the value ? and 01 a pic x(6) value is abc 01 b pic x(3) move a to b wht will be the value ?

7 Answers   Patni,


What guidelines should be followed to write a structured Cobol program?

1 Answers  


How to find out the closest prime number of an input number? I believe it has something to do with SEARCH and COBOL Linear Array.

0 Answers   Infosys,






What is the LINKAGE SECTION used for?

4 Answers  


I have to write to a outfile where the number of records in that file should be the header of that file using IMS.. can anyone help me in this issue

0 Answers   IBM,


What is SQL Code -904 and -903 in DB2 And how to handle it?

1 Answers   IBM,


What are the access modes of START statement?

0 Answers  


What should be the sorting order for SEARCH ALL?

5 Answers  


Can you REWRITE a record in an ESDS file? Can you DELETE a record from it?

6 Answers   ABC, IBM, Mphasis, Wipro,


What is the LINKAGE SECTION used in COBOL?

0 Answers   UGC Corporation,


Categories