Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Do we need to recompile programs if DB2 table stucture will

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
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    Post subject: Do we need to recompile programs if DB2 table stucture will
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    Post subject:
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    Post subject: Re: Do we need to recompile programs if DB2 table stucture w
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: 2360
Location: Israel

PostPosted: Wed Sep 13, 2006 4:27 pm    Post subject:
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    Post subject:
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    Post subject: Re: Do we need to recompile programs if DB2 table stucture w
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    IBMMAINFRAMES.com Support Forums -> DB2 All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Update table without cursor Ron Klop DB2 3 Wed Oct 11, 2017 1:06 pm
No new posts Table(Unicode(Graphic) table) loading... muralikrishnan_new DB2 0 Thu Oct 05, 2017 5:10 pm
No new posts pointers on using USS and C programs. Pedro All Other Mainframe Topics 0 Wed Oct 04, 2017 4:38 am
No new posts Insert a Row_number into table useit DB2 2 Tue Sep 19, 2017 1:07 pm
No new posts how to see when the last read access ... Mike 1304 DB2 1 Tue Sep 12, 2017 7:52 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us