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

Do we need to recompile programs if DB2 table stucture will


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
ramsfm

New User


Joined: 05 May 2006
Posts: 12
Location: Pune

PostPosted: Wed Sep 13, 2006 12:48 pm
Reply with quote

HI ,

I am going to add two more new fields in tables A & B.
Do we require to recompile all components which are using these tables?
Please clarify this ASAP.
We are using DB2 V7.1.0

Tx,
Ramesh.
Back to top
View user's profile Send private message
red_roses

New User


Joined: 31 Oct 2005
Posts: 27

PostPosted: Wed Sep 13, 2006 3:24 pm
Reply with quote

no, just compile the pgm that will use the new fields or the ones that have a 'select * ' query.
Back to top
View user's profile Send private message
vijayakumar.yellala

New User


Joined: 19 Apr 2006
Posts: 63
Location: Chennai

PostPosted: Wed Sep 13, 2006 3:50 pm
Reply with quote

Hello,


If in your program has SQL like " Select * from <table name> where condition,...."

this time u should have to recompile all the programs which are using that table...........

Correct me, If i am wrong...

.......Vijay
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Wed Sep 13, 2006 4:27 pm
Reply with quote

Don't forget to rebind.

O.
Back to top
View user's profile Send private message
ramsfm

New User


Joined: 05 May 2006
Posts: 12
Location: Pune

PostPosted: Wed Sep 13, 2006 4:59 pm
Reply with quote

Hi All,
thanks for ur response.

Some components are using query on selected fields. in this case we no need to recompile right?

Please advice me on this.
Back to top
View user's profile Send private message
kgumraj

Active User


Joined: 01 May 2006
Posts: 151
Location: Hyderabad

PostPosted: Wed Sep 13, 2006 9:45 pm
Reply with quote

You are right
Since the query is not looking for the attributes, it is not neccesary
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 -> DB2

 


Similar Topics
Topic Forum Replies
No new posts Load new table with Old unload - DB2 DB2 6
No new posts Pulling a fixed number of records fro... DB2 2
No new posts Multiple table unload using INZUTILB DB2 2
No new posts Check data with Exception Table DB2 0
No new posts Dynamically pass table name to a sele... DB2 2
Search our Forums:

Back to Top