Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     How to find what SQL is generated

Read-Only Read-Only Topic
Go
Search
Notify
Tools
How to find what SQL is generated
 Login/Join
 
<NIVAS>
posted
Hi
My question is
What SQL is generated if an Alpha or Date field is SUMmed in a WebFOCUS request?
Please let us know if u guys any idea

I did try this way but i didnt find sql generated when i view source code on html output

SET TRACEUSER = ON
SET TRACEON = STMTRACE//CLIENT
TABLE FILE filename
PRINT field
END

Thanks,
nivas


Thanks,
 
Report This Post
Platinum Member
posted Hide Post
Hi There

This usually works for me. Place this after your request and then view source. Like this...

TABLE FILE filename
PRINT field
END
SET TRACEOFF = ALL
SET TRACEON = SQLAGGR//CLIENT
SET TRACEON = STMTRACE//CLIENT
SET TRACEON = STMTRACE/2/CLIENT
SET TRACEUSER = ON
 
Posts: 246 | Location: Montreal, QC, Canada | Registered: October 01, 2003Report This Post
Member
posted Hide Post
Mmm...this doesn't work for me either. I'm using WF Browser 4.3.6

Just trying to trace

TABLE FILE CAR
PRINT MODEL
END

Never able to see any trace within the 'view source'. Any ideas ?
 
Posts: 23 | Registered: January 27, 2004Report This Post
Guru
posted Hide Post
I get my trace like this; you may need the echo and you may need to add an -EXIT before it produces a report to see the trace. Good Luck!

SET MSG=ON
-SET &ECHO=ALL;
SET TRACEOFF = ALL
SET TRACEON = STMTRACE//CLIENT
SET TRACEON = STMTRACE/2/CLIENT
SET TRACEUSER = ON
-RUN

BTW, Jodye - the think setting the AGGR/CLIENT makes Focus do the work.

Carol
 
Posts: 428 | Location: Springfield, MA | Registered: May 07, 2003Report This Post
Member
posted Hide Post
quote:
Originally posted by Carol Dobson:
[qb] I get my trace like this; you may need the echo and you may need to add an -EXIT before it produces a report to see the trace. Good Luck!

SET MSG=ON
-SET &ECHO=ALL;
SET TRACEOFF = ALL
SET TRACEON = STMTRACE//CLIENT
SET TRACEON = STMTRACE/2/CLIENT
SET TRACEUSER = ON
-RUN

Carol [/qb]
Tried it...no luck. What do you mean by putting a -EXIT BEFORE the report ? If I do that, the code stops there and of course the report doesn't show. This is ran from the ad hoc window from the server (Focus Request Session). I just execute a fex with this inside, please tell me what's wrong :

SET MSG=ON
-SET &ECHO=ALL;
SET TRACEOFF = ALL
SET TRACEON = STMTRACE//CLIENT
SET TRACEON = STMTRACE/2/CLIENT
SET TRACEUSER = ON
-RUN

TABLE FILE CAR
PRINT MODEL
WHERE COUNTRY EQ 'ENGLAND'
END
-RUN
-EXIT
 
Posts: 23 | Registered: January 27, 2004Report This Post
Guru
posted Hide Post
The CAR file is not a SQL table, so the trace won't work! Remember this is to see a SQL trace.

Here's a real request;

SET MSG=ON
-SET ECHO=ALL;
SET TRACEOFF = ALL
SET TRACEON = STMTRACE//CLIENT
SET TRACEON = STMTRACE/2/CLIENT
SET TRACEUSER = ON
-RUN

TABLE FILE ASTFOC
PRINT PORTFOLIO_A
IF READLIMIT EQ 100
END
-RUN

Then select VIEW, SOURCE
to see the trace; Here's a real trace.

15.12.31 AE SELECT TOP 100 T1."PORTFOLIOSHORTNAME" FROM dbo.MonthEnd T1;
0 NUMBER OF RECORDS IN TABLE= 100 LINES= 100
 
Posts: 428 | Location: Springfield, MA | Registered: May 07, 2003Report This Post
Member
posted Hide Post
Darn! How stupid of me... Tried it on another table, worked. Thanks!
 
Posts: 23 | Registered: January 27, 2004Report This Post
Member
posted Hide Post
Trying to get this to work on mainframe FOCUS (V7.2). I'm joining an internal HOLD file to a DB2 file and getting incorrect output. Long time ago you could allocate FSTRACE3 and FSTRACE4, but that no longer works. I get nothing when using the methods you've described. Any ideas? Thanks.
 
Posts: 15 | Registered: May 17, 2004Report This Post
Platinum Member
posted Hide Post
koslo:

FSTRACE3 and FSTRACE4 still works for me on 7.1.1, and according to Tracing DB2 Interface Processing documentation, FSTRACEn must work on 7.2.

Regards,
Mikel
 
Posts: 173 | Location: Madrid, Spain | Registered: May 09, 2003Report This Post
<Kyle>
posted
To make the tracing process quicker, try adding

SET XRETRIEVAL=OFF

to the request. This will generate the same traces as above but it won't actually submit the query to the database; very useful if your request takes a while to run on you don't want to do a "View Source" document.
 
Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     How to find what SQL is generated

Copyright © 1996-2020 Information Builders