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     [Solved for now] Read Mulitple Recordsets

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[Solved for now] Read Mulitple Recordsets
 Login/Join
 
Platinum Member
posted
How do you get WebFocus to read multiple recordsets off of SQL stored procedures? Any examples I can look at? Thanks, Joe

This message has been edited. Last edited by: JOE,


WebFocus 7.7.02 WinXP
 
Posts: 236 | Registered: May 12, 2006Report This Post
Guru
posted Hide Post
Hi,

Can you detail what you are trying to do.
A stored procedure is returning a set of records.
What are you trying to do with these records?.

Regards.


WebFocus 7.6.5
AND WebLogic server as web server
sql2005 as database server
 
Posts: 273 | Location: Europe | Registered: May 31, 2007Report This Post
Platinum Member
posted Hide Post
Thanks for the reply. Within the stored procedure, the first recordset will produce an output for daily stats and the second recordset will produce the output for mtd stats. A friend of mine showed me how asp can do this - which I'm not familar with. What about Focus? I have not been able to find any info on how to do this. It looks as if I may have to create multiple stored proc instead of one.


WebFocus 7.7.02 WinXP
 
Posts: 236 | Registered: May 12, 2006Report This Post
Guru
posted Hide Post
Hi,

Try ti catch the first recordset and make a hold file. Then catch the second recordset and make another hold file and then you can report on both hold files. All this can be done within the same Fex file.
Can you post an example of the first recordset and an example of the second then the result that you would expect.

Regards.


WebFocus 7.6.5
AND WebLogic server as web server
sql2005 as database server
 
Posts: 273 | Location: Europe | Registered: May 31, 2007Report This Post
Expert
posted Hide Post
in focus,
something like this:
SET ASNAMES = ON
TABLE FILE myfile
SUM DOLLARS AS MTDDOLARS
BY YEAR BY MONTH
SUM DOLLARS
BY YEAR BY MONTH BY DAY
ON TABLE HOLD
END
gives you a file like this
YEAR MONTH MTDDOLLARS DAY DOLLARS
where column 3 is the monthly aggregate
and column5 is the daily detail for that month.
The concept here is called 'MULTIPLE VERBS'
which is what the fex uses to create aggregate columns.
Is this the sort of thing you're looking for, Joe?




In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
 
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003Report 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     [Solved for now] Read Mulitple Recordsets

Copyright © 1996-2020 Information Builders