IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Logic need for a program having Millions of records


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
learnmf

Active User


Joined: 14 Mar 2005
Posts: 123

PostPosted: Wed Oct 26, 2005 8:30 pm
Reply with quote

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

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
View user's profile Send private message
mdtendulkar

Active User


Joined: 29 Jul 2003
Posts: 237
Location: USA

PostPosted: Mon Nov 07, 2005 10:09 am
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 2
No new posts Compare 2 files(F1 & F2) and writ... JCL & VSAM 8
No new posts Using API Gateway from CICS program CICS 0
No new posts Compare only first records of the fil... SYNCSORT 7
No new posts Pulling a fixed number of records fro... DB2 2
Search our Forums:

Back to Top