View previous topic :: View next topic
|
Author |
Message |
learnmf
Active User
Joined: 14 Mar 2005 Posts: 123
|
|
|
|
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.
Code: |
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
1
2
sum total
3
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 |
|
|
Back to top |
|
|
mdtendulkar
Active User
Joined: 29 Jul 2003 Posts: 237 Location: USA
|
|
|
|
learnmf,
millions records in array will always create some performance issues.
try visiting your cobol programming basics one more time. you will find the answer....
regards
mayuresh |
|
Back to top |
|
|
|