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

Question on binding after index creation


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

New User


Joined: 04 May 2007
Posts: 20
Location: INDIA

PostPosted: Fri Apr 15, 2011 8:19 am
Reply with quote

I have a Db2 table used in a cobol program. There is a query in that program which reads this DB2 table. This query has two of that table's columns in the WHERE clause. I am creating an index on these two columns.
To reflect this new index created or take advantage of the new index by that query, should i re-bind the cobol program again after index change?
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Fri Apr 15, 2011 9:55 am
Reply with quote

to answer your question,
one would have to explain BIND and the options.

But because I know and you don't,
i relish this opportunity to say: "it depends".
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Fri Apr 15, 2011 11:15 am
Reply with quote

for instance, depending on your bind parms, you may not have to.
but then we would have to know what your bind parms are,
or you would have to understand them.
Back to top
View user's profile Send private message
GuyC

Senior Member


Joined: 11 Aug 2009
Posts: 1281
Location: Belgium

PostPosted: Fri Apr 15, 2011 3:10 pm
Reply with quote

naughty Dino, you could just have said : "Very likely".
Back to top
View user's profile Send private message
Peter Nancollis

New User


Joined: 15 Mar 2011
Posts: 47
Location: UK

PostPosted: Sat Apr 16, 2011 5:16 am
Reply with quote

Quote:
"Very likely"
... does that not assume RUNSTATS?
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 Question for file manager IBM Tools 7
No new posts Cobol file using index COBOL Programming 2
No new posts question for Pedro TSO/ISPF 2
No new posts question on Outrec and sort #Digvijay DFSORT/ICETOOL 20
No new posts DL/I status code AK for GU call using... IMS DB/DC 1
Search our Forums:

Back to Top