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

Program is taking too much time


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

New User


Joined: 02 Jun 2005
Posts: 24
Location: PUNE

PostPosted: Tue Nov 28, 2006 9:45 pm
Reply with quote

Hi

I have one cobol program.

This program is using one VSAM file having one lakh records.

When it was stand alone it would finsih with in one minute.

Recently one sub program was included in this program which also usies the file information. Now when I run the program it is running for very long time.



Can anyone tell me what might be the reason for this and also one good solution.

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

Active User


Joined: 14 Jun 2005
Posts: 186
Location: USA

PostPosted: Tue Nov 28, 2006 9:59 pm
Reply with quote

- Execute STROBE on program and see where exactly time is being spent.
- Do VSAM file have buffers on it, if not add buffers.

Without looking at code difficult to make suggestions. Can you put atleast PSEUDO CODE of what program is doing.
Back to top
View user's profile Send private message
kumar_jalluri

New User


Joined: 02 Jun 2005
Posts: 24
Location: PUNE

PostPosted: Tue Nov 28, 2006 10:37 pm
Reply with quote

Even if I add a small program like doing small arithmatic operation it is so much of time.

what is buffers?

How can I increase these buffers.

Could u plz explain in more detail.

Thanks
Back to top
View user's profile Send private message
MFRASHEED

Active User


Joined: 14 Jun 2005
Posts: 186
Location: USA

PostPosted: Tue Nov 28, 2006 11:17 pm
Reply with quote

Adding buffers to VSAM works like CACHE, reduces I/O and increases performance. What kind of buffers depends on VSAM processing, if VSAM is only Read only, (Dynamic or Sequential), READ and WRITE/RE-WRITE etc.

Read more about VSAM buffers and VSAM tunning in

www.redbooks.ibm.com/redbooks/pdfs/sg246105.pdf

Chapters:
2.6 Parameters affecting performance
2.6.13 Buffering options
2.6.14 Buffering techniques

Also best way is to execute STROBE or any other performance management tools your shop has.

Code:

STROBE is a performance measurement system that helps you to improve         
the performance of application programs by determining where and how time is
spent in an online subsystem or batch processing program.                   


STROBE can be invoked by TSO STROBE and there is a TUTORIAL to help you around with options.
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 To get the the current time DFSORT/ICETOOL 13
No new posts RC query -Time column CA Products 3
No new posts C Compile time time stamps Java & MQSeries 10
No new posts Parallelization in CICS to reduce res... CICS 4
Search our Forums:

Back to Top