MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

QUERYNO in an EXPLAIN

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database
View previous topic :: View next topic  
Author Message
monaco
Beginner


Joined: 20 May 2004
Posts: 77
Topics: 31

PostPosted: Mon Oct 18, 2004 10:18 am    Post subject: QUERYNO in an EXPLAIN Reply with quote

Hi all,

After a BIND with EXPLAIN(YES) i have information on PLAN_TABLE. In that table, the information about every sentence is identified with QUERYNO.

How can i link the sentence (select from... or update, etc) with the QUERYNO?

For example, i have the path access of QUERYNO 1621. But there is a easy way to get which sentence has this access path?

Kind regards.
Back to top
View user's profile Send private message
Bithead
Advanced


Joined: 03 Jan 2003
Posts: 550
Topics: 23
Location: Michigan, USA

PostPosted: Mon Oct 18, 2004 3:23 pm    Post subject: Reply with quote

Try looking for an SQL-STMT-NUM with a value of +1621 in the output from the compile. This will give you an 01 level for an SQL-PLISTxx entry. Look for that number in the code (Skip all the entries in the SQL-INITIAL section) and it should have saved the original SQL as a comment.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group