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

What is the maximum data length for Numeric DataType ?

3 Answers   Cap Gemini,


Scenario: I have 3 Input Files.Read the first i/p file and depending on certain business logic, I want to read wither i/p file-2 or i/p file-3.Now, depending on certain business logic applied to the record read from either file-2 or file-3, I decide to write them to either output file-2 or output file-2. Question: How many job steps are necessary to implement a solution for the above.

2 Answers   TCS,


What is the default value(s) for an initialize? What keyword will allow for an override of the default?

0 Answers  


What is the maximum length of a field you can define using COMP-3?

4 Answers   Complex System, Infosys,


Read filea And file b write the same records in both files? Records in a but not in b record in b but not in a

3 Answers   TCS,






In which area will you utilize 88 level items in cobol?

0 Answers  


How do get the result of your program directly on your pc?

0 Answers   UST,


i want a program using by if, evaluate , string, unstring, perform, occurs?

1 Answers  


How To Separate The Numerics From An Alphanumric Data Item Which Contains Both Alphabates And Numerics ?

4 Answers  


How to code fscode 10 in cobol program? Where yoy code in your pgm?give ans for the question.

2 Answers   IBM,


what is meaning by design document? who can repared for this?

5 Answers   TCS,


soc-7 is a bad data,invalid data. when ever we are moving the alphabets in the position of numeric then we got this abend. so my question is if o1 ws-data pic 9(1) value passing the alphabet some x. then we got soc-7 or not? i want clarification ?

7 Answers   CitiGroup, IBM,


Categories