Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Logic need for a program having Millions of records

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: Logic need for a program having Millions of records
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: 238
Location: USA

PostPosted: Mon Nov 07, 2005 10:09 am    Post subject:
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    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts IMS T-Pipe queue counts in a COBOL Pr... Siva NKK Kothamasu IMS DB/DC 0 Tue May 09, 2017 6:31 pm
No new posts Check if any Detail records and extra... V S Amarendra Reddy SYNCSORT 19 Mon May 08, 2017 8:54 pm
No new posts Need help in REXX CALL program Raje1002 CLIST & REXX 5 Wed Apr 19, 2017 11:18 pm
No new posts Join giving more records than expected Danielle.Filteau SYNCSORT 2 Thu Mar 09, 2017 3:28 am
No new posts TSO or command line utility to genera... kishpra JCL & VSAM 3 Thu Mar 09, 2017 1:11 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us