×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

DB2 Explain in WebFOCUS

DB2 Explain in WebFOCUS

DB2 Explain in WebFOCUS

(OP)
Hi,

if I use the WebFOCUS-Command
"SQL DB2 SET EXPLAIN ON"
the following by the TABLE-Command created SQL-Command is analyzed and the analyze-results are written into DB2-table "userid.PLAN_TABLE".

Well, I've two questions:
1. Is it possible to write to an arbitrary PLAN_TABLE, e.g.
 "otherId.PLAN_TABLE"?
2. The TABLE-Command is executed although EXPLAIN is on.
I would expect only the analyzing not the real table-results. Before really executing I first want to know how "well-formed" the SQL-Select is. Does anybody know how to prevent WebFOCUS from really executing the TABLE-Command when EXPLAIN is on?

Thanks for any clue!
sonjas

RE: DB2 Explain in WebFOCUS

Sonjas,

to prevent any data retrieval use

SET XRETRIEVAL = OFF

This will run the job as normal, creating all of the hold files and master files etc, but will not retrieve any data.  It's an easy way to check syntax / sql etc.

When you need to turn retrieval back on, it's just

SET XRETRIEVAL = ON

As far as the plan table goes, it's a long time since I've used DB2, but there were always problems getting sufficient permissions from dba's to create tables!  Hopefully someone else will be able to help you here.

regards

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close