I need help in writing a report generation program .
i have done it using two array .
Logic is also correct that i have written.
i got the reply from the interviewer that your program works fine for small amt of records.
Not for millions of records.
It may give some problem in bufeer etc.
It is a report generation program.
I want to know how to improve the performance of a program.
1st it is a cobol program .
It has no links with mainframe.
Out put is like this
header ---4 line
sl no fld 1 fld 2
Specifiaction is like this
A page contain not more then 3 records
if fld1 value changes(suppose it is dept) if dept changes then sum total pergformed.
Input have a field called grade which may be 1 or 2.
We have to print the report for grade 1 and then for grade 2.
When report for grade 2 is tro be printed slno should be started with 1.
In file format (sortyec in emp no and dept). No need to use sorting)
dept emp no grade
a 12 1
a 27 2
b 30 1
a 35 1