Focal Point
[Solved for now] Read Mulitple Recordsets

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/97810624

March 13, 2009, 08:09 AM
JOE
[Solved for now] Read Mulitple Recordsets
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
March 13, 2009, 09:00 AM
Majid Jeddi
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
March 13, 2009, 09:14 AM
JOE
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
March 13, 2009, 11:26 AM
Majid Jeddi
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
March 14, 2009, 02:55 PM
susannah
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