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
Answer / sarang sangeet
THE COMPILATION JOB GETS ABENDED WITH MAXCC=12.
| Is This Answer Correct ? | 11 Yes | 0 No |
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 |
how do you reference the ksds vsam file formats from cobol programs
i want to use only first 100 records from a file.plz tell me how to write JCL for this(for read,copy,write operations).plz give me details of all posible JCL utilities?
The following entries appear in the WORKING-STORAGE SECTION: 01 DATE-TODAY. 05 YY PIC XX VALUE "90". 05 MM PIC XX VALUE "12". 05 DD PIC XX VALUE :31". 01 DATE-EDIT PIC XX/XX/XX. MOVE DATE-TODAY TO DATE-EDIT. (a) 901231 (b) 90/12/31 (c) 31/12/90 (d) 311290
How many sections are there in data division?.
whats the disadvantage of search all over search?
How to find whether a Flat file is empty or not without Reading a file in COBOL Program. (not using JCL)
Whats the difference between search & search ALL?
I have a file it contain 10 records.i got abend at 8th record because of soc7.how do you know that perticular record got abend?
In a program, there are 2 sections defined say SECTION-A and SECTION-B. There is a paragraph say CALC-INT in both the sections. If this para has to be called directly for SECTION-A, then PERFORM CALC-INT will not work as it is present in both sections. How the PERFORM statement has to be coded here?
Can anybody give me example of subscript and index
What is a scope terminator give example?
What do you feel makes a good program?