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

Program takes too long to run.


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

New User


Joined: 17 Oct 2006
Posts: 7
Location: India

PostPosted: Fri Oct 20, 2006 11:26 pm
Reply with quote

Hello All,
I have a program where it is reading a VSAM file to fetch one information for every record fetched from a DB2 table (if the record keys match). But since, it is reading the file partially it takes hell of a time to complete the program. (the number of records is huge). Earlier before this read logic for VSAM file was introduced, the program was completed in 2 mins !!!!
Got to read somewhere, the VIO option might help. I am not sure, what is this and how it can help me here to reduce the time from 2 hrs to 5 mins.

The program run frequently in a business day.

Please help, as its affecting DB2 performance too...to some extent (by holding up some tables).

Thanks in advance.
Amit.
Back to top
View user's profile Send private message
MFRASHEED

Active User


Joined: 14 Jun 2005
Posts: 186
Location: USA

PostPosted: Fri Oct 20, 2006 11:44 pm
Reply with quote

What do you mean by:
Quote:

But since, it is reading the file partially


Also:
- Do you have Buffers on VSAM file. If not add buffers.
- How big is this VSAM file, is it a single file or multiple files?

If file is one single huge file, consider spliting file by key and code a IO module which will read only particular file based on key. Divide and conquer.
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Sat Oct 21, 2006 12:43 am
Reply with quote

Splitting the VSAM file into parts will only provide you with relief if you:
  • DECLARE your CURSOR based on the Low-Hi key of the VSAM
  • run multiple jobs (one job for each VSAM) simultaneously


you mentioned than the run time was only a few minutes before introduction of the VSAM read logic. What was going on before?

Are you updating the VSAM or DB2? or just generating a third file (spool)?

you have not provided enough info in order to receive any good advice except MFRASHEED's suggestion (plus multiple jobs).
Back to top
View user's profile Send private message
priyesh.agrawal

Senior Member


Joined: 28 Mar 2005
Posts: 1448
Location: Chicago, IL

PostPosted: Sat Oct 21, 2006 10:52 pm
Reply with quote

See what the manual says...
Back to top
View user's profile Send private message
akatekar

New User


Joined: 17 Oct 2006
Posts: 7
Location: India

PostPosted: Sun Oct 29, 2006 12:59 am
Reply with quote

Thanks for ur replies everybody. But my question was regarding VIO option, i would like to know more of that VIO stuff. Priyesh will look into the manual. Thanks for the link.
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 Using API Gateway from CICS program CICS 0
No new posts DB2 Event passed to the Application P... DB2 1
No new posts How to pass the PARM value to my targ... COBOL Programming 8
No new posts REXX code to expand copybook in a cob... CLIST & REXX 2
No new posts EZT program to build a flat file with... All Other Mainframe Topics 9
Search our Forums:

Back to Top