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 

recompilation of DB2 Program.

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


Joined: 05 Jan 2006
Posts: 43
Topics: 14

PostPosted: Mon May 04, 2009 3:17 pm    Post subject: recompilation of DB2 Program. Reply with quote

Hi,

I have a quick question on DB2 program recompilation.
Do we need to recompile all the online and batch DB2 program if a new field is added to the table ? we did not recompile last time when we added a new column at the end of db2 table.

Will it be different if I add in a feild in between instead of at the end.

As always appreciate for all the help

THanks
Manoj Voona
Back to top
View user's profile Send private message Send e-mail
kolusu
Site Admin
Site Admin


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

PostPosted: Mon May 04, 2009 3:59 pm    Post subject: Reply with quote

manojvoona,

As long as you don't have Select * in your programs even if you are adding the field in the middle.

However if someone is referencing a particular item using reference modification with a select * into a working storage variable, you might run into a problem.

if your program is NOT referring the column then you don't have to anything

Kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
manojvoona
Beginner


Joined: 05 Jan 2006
Posts: 43
Topics: 14

PostPosted: Mon May 04, 2009 4:12 pm    Post subject: Reply with quote

Thanks Kolusu for confirmation...... for safety do you want us to rebind the plan ?

Thanks
Manoj
Back to top
View user's profile Send private message Send e-mail
kolusu
Site Admin
Site Admin


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

PostPosted: Mon May 04, 2009 4:51 pm    Post subject: Reply with quote

manojvoona,

Not required unless your data has grown by leaps and bounds and a reorg was done, which would make rebind pick the optimal path once again
Back to top
View user's profile Send private message Send e-mail Visit poster's website
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