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

DB2 optimization from programmers point of view


IBM Mainframe Forums -> Mainframe Interview Questions
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Satish5

New User


Joined: 12 Nov 2007
Posts: 38
Location: Texas, USA

PostPosted: Mon Jun 15, 2009 5:45 pm
Reply with quote

I was asked how to optimize DB2 from programmers point of view. If a DB2/COBOL prog is takin 5 hours then how the execution time can be reduced to say 40 mins.

I have seen large complex confusing manuals, but can some one please share optimization techniqueus in simple form.

Thansk,
Satish
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8697
Location: Dubuque, Iowa, USA

PostPosted: Mon Jun 15, 2009 8:21 pm
Reply with quote

Quote:
If a DB2/COBOL prog is takin 5 hours then how the execution time can be reduced to say 40 mins.
How do you know this goal can be achieved, even?

First, you have to find out if the job is CPU-bound or I/O-bound. For CPU-bound jobs, find out what is taking all the CPU time and minimize it (which may reduce the run time but may not). For I/O-bound jobs, you can work with your site storage team to reduce channel and disk contention, but this again may or may not reduce run time.

Bottom line: there are no guaranteed, 100% effective all-the-time methods to reduce run time. If the run time has already been reduced to the minimum, then short of buying a faster machine with faster disk drives there may no way to reduce the run time.
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 -> Mainframe Interview Questions

 


Similar Topics
Topic Forum Replies
No new posts Point and Shoot )PTNS TSO/ISPF 0
No new posts SET PATH in View DDL DB2 2
No new posts REXX code to expand copybook in a cob... CLIST & REXX 2
No new posts Issues with VIEW DATASET Command CLIST & REXX 2
No new posts Difference when accessing dataset in ... JCL & VSAM 7
Search our Forums:

Back to Top