MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

JCL to bind the program

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database
View previous topic :: View next topic  
Author Message
Veera333
Beginner


Joined: 16 Jul 2010
Posts: 7
Topics: 5

PostPosted: Tue Jul 20, 2010 8:31 am    Post subject: JCL to bind the program Reply with quote

Hi,
Is there any JCL that binds the program and can be scheduled as daily or weekly job for rebinding.


Thanks in advance,
Veera
Back to top
View user's profile Send private message
dbzTHEdinosauer
Supermod


Joined: 20 Oct 2006
Posts: 1411
Topics: 26
Location: germany

PostPosted: Tue Jul 20, 2010 8:38 am    Post subject: Reply with quote

Veera333,
are you a dba, working in db2 support or a development programmer?

if the later contact the former.
_________________
Dick Brenholtz
American living in Varel, Germany
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12376
Topics: 75
Location: San Jose

PostPosted: Tue Jul 20, 2010 10:19 am    Post subject: Reply with quote

Veera333,

I just don't get this concept of re-binding the program everyday/every week. Re-org is the way to do and I have seen a surge of questions on re-binding which absolutely makes no sense without a re-org.

Kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Anuj Dhawan
Intermediate


Joined: 19 Jul 2007
Posts: 298
Topics: 7
Location: Mumbai,India

PostPosted: Wed Jul 21, 2010 4:18 am    Post subject: Reply with quote

Yes, I also agree with Dick and Skolusu and probably the first question I'd like to ask is: why do you want to do that? What business need initiates such a requirement?
_________________
Regards,
Anuj
Back to top
View user's profile Send private message
Veera333
Beginner


Joined: 16 Jul 2010
Posts: 7
Topics: 5

PostPosted: Wed Jul 21, 2010 7:43 am    Post subject: Reply with quote

Hi,
In development region i have to bind the program whenever i do a reorg on a table.

I was assuming the same case in production as well. Dont i need to bind or rebind the program every time reorg is executed on the table that is being used in the program?

Thanks,
Veera
Back to top
View user's profile Send private message
RonB
Beginner


Joined: 02 Dec 2002
Posts: 93
Topics: 0
Location: Orlando, FL

PostPosted: Wed Jul 21, 2010 9:46 am    Post subject: Reply with quote

1) You don't "NEED" to bind/rebind a program every time a Reorg is done.
2) The major reason for doing a Reorg is to improve table access - and table access paths are determined by the optimizer based on the results of the latest Runstats; so unless you do a Runstats following the Reorg, access paths will not change merely by doing a rebind.
3) There is no benefit in automatically rebinding a program daily/weekly unless you have a high insert/delete ratio ( and you also perform a Reorg/Runstats prior to every automatic rebind ).
4) Even if Reorg/Runstats HAVE been done, if the ratio of inserts/deletes is low, a rebind will likely not result in any change to access paths, thus not significantly improving performance.
5) Lastly, there is a very real possibility that access paths for some table accesses will actually deteriorate - not improve - following a Reorg/Runstats/Rebind; so a review of Explain results should be done following any Rebind.

A quick read of This article might help in understanding the process.
_________________
A computer once beat me at chess, but it was no match for me at kick boxing.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group