If you can't rebind in order to turn explain on (I'm guessing you're in production here), then you could try dropping into QMF and interrogating the SYSPACKSTMT table. The column STMT contains the SQL I think, but it's unformatted and looks awful. You'll have to trawl through it looking for the table names.
Knock up JCL to rebind the package in test/dev and add EXPLAIN(YES) to the bind statements. Whatever SQLID the bind is run under, you will need to set up an sqlid.PLAN_TABLE and this should then write explain statements to that table.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.