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
 

 

Program is taking too much time

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: Program is taking too much time
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    Post subject: Re: Program is taking too much time
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    Post subject: Re: Program is taking too much time
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    Post subject: Re: Program is taking too much time
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

http://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    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 Date and time format in CICS Chandru3183 CICS 2 Sat Mar 18, 2017 12:46 pm
No new posts How to get current date -1 and curren... murali.andaluri DFSORT/ICETOOL 3 Wed Mar 08, 2017 2:09 pm
No new posts SQL query not working in Cobol program. CuriousMainframer COBOL Programming 14 Wed Feb 22, 2017 5:56 pm
No new posts CICS transaction slow response time vasanthz All Other Mainframe Topics 3 Thu Jan 19, 2017 1:31 am
No new posts Executing OO COBOL program invoking J... Virendra Shambharkar COBOL Programming 2 Tue Jan 10, 2017 6:37 pm


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