Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups 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 unload data from table with lob columns farhad_evan DB2 0 Sat Apr 22, 2017 1:32 pm
No new posts Data replication from multiple Db2 ta... kishpra DB2 9 Mon Mar 27, 2017 9:58 pm
No new posts Why myself doing Package Bind always ... Susanta DB2 5 Thu Mar 02, 2017 10:47 pm
No new posts how to send just 10 rows in a CICS sc... Megha Gupta CICS 5 Thu Feb 23, 2017 6:57 pm
No new posts Join of more than one table dibyendumandal11111 DB2 6 Mon Feb 13, 2017 11:36 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us