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 Extracting DDL for all list of intere... Ashishpanpaliya DB2 5 Mon May 21, 2018 4:08 pm
No new posts Searching a table for the field name? socker_dad COBOL Programming 8 Sat Mar 31, 2018 2:57 am
No new posts Need inputs on DB2 tablespace/table r... ashek15 DB2 3 Sat Mar 24, 2018 11:49 pm
No new posts COBOL declaration for table Poha Eater DB2 3 Mon Feb 26, 2018 6:58 pm
No new posts load and delete table through JCL wit... ram_vizag JCL & VSAM 9 Thu Feb 01, 2018 12:47 am

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