Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
setting QUERYNO for EXPLAIN output in applicaton program

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
Author Message
vini_srcna

Active User


Joined: 26 May 2005
Posts: 187
Location: Copenhagen, Denmark

PostPosted: Fri May 30, 2008 5:21 pm    Post subject: setting QUERYNO for EXPLAIN output in applicaton program
Reply with quote

Hi Guys,

I have a question on Explain. We know that when the package/Plan is bound with EXPLAIN(YES) and if there is a plan table, we get the explain output into the plan table. The explain output gives the QUERYNO for each EXEC SQL statement in the program based on the Precompiler listing statement no.

When ever we change the program, QUERYNO keeps on changing. I have heard that there is a way that we can keep the QUERYNO constant so that it will be very easy to see the difference in ACCESS PATH. It will be easy to figure out which query is making the difference easily.

Is that by using EXPLAIN PLAN SET QUERYNO in the application program..?. It didnt work for me. I think I wasn't right. Please through some light on this. Thanks in advance.!
Back to top
View user's profile Send private message
References
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2 All times are GMT + 6 Hours
Page 1 of 1