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 Writing a file using online program grvtomar PL/I & Assembler 3 Fri Jun 30, 2017 1:06 pm
No new posts pre-compiler for program in an HFS Pedro DB2 0 Fri Jun 23, 2017 11:13 pm
No new posts Compiling program in endeavor for tra... RALAKKAL Compuware & Other Tools 4 Mon Jun 05, 2017 8:27 pm
No new posts COBOL DB2 program - zIIP eligible vasanthz COBOL Programming 7 Wed May 31, 2017 5:12 am
No new posts DB2 Program abending without giving a... rahulgarg14 DB2 7 Mon May 29, 2017 8:10 pm


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