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] Displaying stored procedure result set

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Displaying stored procedure result set
 Login/Join
 
Platinum Member
posted
Hello everyone,

I am trying to build a report which calls a SQL stored procedure (Oracle database).
The stored procedure will send the results as a text string variable (data separated by comma) or in a HTML formatted file – how do we display the result as a tabular report in webfocus?

I have worked with storing results in a Hold file and displaying the hold file, but usually the hold file is already formatted in form of columns and all we have to do is re-format data types and print the result.
I have not come across a comma separated data file in the form of a text variable which needs to be displayed in a tabular way. I am not sure how to go about displaying this in webfocus, is this possible?

Thanks in advance!

This message has been edited. Last edited by: FP Mod Chuck,


WF 7.7.03, Win 7
 
Posts: 127 | Registered: January 12, 2017Report This Post
Virtuoso
posted Hide Post
Hi Nova27

If you create a synonym for the stored procedure you can use WebFOCUS directly with that metadata and get the results back just like any other request.


Thank you for using Focal Point!

Chuck Wolff - Focal Point Moderator
WebFOCUS 7x and 8x, Windows, Linux All output Formats
 
Posts: 2127 | Location: Customer Support | Registered: April 12, 2005Report This Post
Virtuoso
posted Hide Post
Is the output comma-separated the same as in CSV format?

If that is the case, it may work to hold the results in ALPHA format and then reading it as if it were DFIX format.


WebFOCUS 8.1.03, Windows 7-64/2008-64, IBM DB2/400, Oracle 11g & RDB, MS SQL-Server 2005, SAP, PostgreSQL 11, Output: HTML, PDF, Excel 2010
: Member of User Group Benelux :
 
Posts: 1669 | Location: Enschede, Netherlands | Registered: August 12, 2010Report This Post
Platinum Member
posted Hide Post
Hi Wep5622,

How do we read a dataset as if it were DFIX format? I haven't done that before so not sure how to do that.

Can you please explain?

Thanks!


WF 7.7.03, Win 7
 
Posts: 127 | Registered: January 12, 2017Report This Post
Platinum Member
posted Hide Post
quote:
Originally posted by Chuck Wolff:
Hi Nova27

If you create a synonym for the stored procedure you can use WebFOCUS directly with that metadata and get the results back just like any other request.


Hi Chuck,
How do I create a synonym for a stored procedure? I thought we could only create synonyms for tables/views.

Thanks!


WF 7.7.03, Win 7
 
Posts: 127 | Registered: January 12, 2017Report This Post
Expert
posted Hide Post
Use the Synonym builder on the Reporting Server Console. You can choose Stored Procedures from the Object Type drop-down box.



Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Virtuoso
posted Hide Post
quote:
Originally posted by Nova27:
How do we read a dataset as if it were DFIX format? I haven't done that before so not sure how to do that.


I'm not at all sure that that is going to work; just thinking out of the box here Wink

The idea is that you create a master file that describes the DFIX format in the (ALPHA) file. It may be possible to use the GUI "Create synonym" functionality, otherwise you will probably have to fabricate one using EX LINES=n, etc. There are some examples of that in this forum. It looks intimidating at first, but it's really just a way of saying: write the next n lines to the specified file.

I suggest, if you go the route of fabricating the master, that you first try that with an actual CSV file to learn the ropes, before trying it on a file to which it may after all not apply.


WebFOCUS 8.1.03, Windows 7-64/2008-64, IBM DB2/400, Oracle 11g & RDB, MS SQL-Server 2005, SAP, PostgreSQL 11, Output: HTML, PDF, Excel 2010
: Member of User Group Benelux :
 
Posts: 1669 | Location: Enschede, Netherlands | Registered: August 12, 2010Report This Post
Expert
posted Hide Post
If you know the number of columns (commas) in the returned comma-delimited data, you can use DEFINE or COMPUTE to create the individual report columns..


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report 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] Displaying stored procedure result set

Copyright © 1996-2020 Information Builders