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

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

1589


What are literals?

632


how do you reference the fixed unblock file formats from cobol programs

712


here is my requirement A1 is alphanumeric with value 'A1B2C3D4' as defined below 05 A1 PIC X(8) VALUE IS 'A1B2C3D4' but i need to have A2,A3 as ABCD & 1234 repectively...... A2 = ABCD A3 = 1234 Can you please explain me what are the different ways to do it?

6836


Write a program to enter and display the names of students in a class using the occurs clause.

654






How do we get current date from system with century in COBOL?

807


What are the various section in data division and briefly explain them.

700


how do you reference the variable unblock file formats from cobol programs

750


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

1933


Can you please let me know the centre name of INS certification in Kolkata.

1717


Which division and paragraphs are mandatory for a COBOL program?

710


What is Pic 9v99 Indicates in COBOL?

729


Name the divisions, which are available in a cobol program?

685


if we have " ibm mainframe ",in that how to remove first and last leading space eg:"ibm mainframe" like that the answer we need

859


What are INPUT PROCEDURE and OUTPUT PROCEDURE?

691