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     using the o/p of one stored procedure to call another stored procedure

Read-Only Read-Only Topic
Go
Search
Notify
Tools
using the o/p of one stored procedure to call another stored procedure
 Login/Join
 
Gold member
posted
Hi,

I have two parts of my project to be integrated into one.The first part has a stored procedure which returns a report number as o/p.The second part takes the report no. as i/p and generates the data.Both the parts are working independently(in 2 seaprate .fex files).But i want to integrate these two into one such that -1] Call Proc1 which returns Report_No
2] Call Proc2(Report_No)

How can i do this in one fex file.I am pasting my code below(WHICH IS NOT WORKING).this file is called from a html,hence it has the starting -SET statements.

This message has been edited. Last edited by: Aditya,
 
Posts: 84 | Registered: June 05, 2006Report This Post
Platinum Member
posted Hide Post
Hi,

If I understand correctly, you want the value returned by the query

TABLE FILE SQLOUT
PRINT P_REPORT_NO
END

to be used in the EX command where you have the text (P_REPORT_NO)?

If so, have you tried using &vars? i.e.

TABLE FILE SQLOUT
PRINT P_REPORT
ON TABLE HOLD AS MYREPORT FORMAT ALPHA
END
-RUN
-** Don't know what format P_REPORT is, enter this where I've got format, e.g &REPORT.A6.
-READ MYREPORT &REPORT.format.
-RUN
-SET &EX='txhdbo.prcFE_TXHRP0004_SECINT_RPT('| &REPORT |')';
-RUN
EX &EX

Haven't tested this, you'll have to have a go and see what happens

Regards

Tewy


WF 7.6.11
Output: HTML, PDF, Excel
 
Posts: 123 | Location: UK | Registered: October 09, 2003Report This Post
Gold member
posted Hide Post
Hi Tewy,

What you are thinking is absolutely correct.I tried doing what you told.

Now i have changed the code a lil bit and instead of the first stored proc i am executing a simple query just to check as the 1st stored proc. takes a lot of time to execute.

This message has been edited. Last edited by: Aditya,
 
Posts: 84 | Registered: June 05, 2006Report This Post
Platinum Member
posted Hide Post
Aditya,

Initialize &REPORT.I before the -READ

-SET &REPORT.I = '';

Sean


------------------------------------------------------------------------
PROD: WebFOCUS 7.6.2 on Unix AIX/Tomcat/Servlet Mode
TEST: WebFOCUS 7.6.2 on Unix AIX/Tomcat/Servlet Mode
 
Posts: 210 | Location: Ottawa | Registered: November 03, 2005Report This Post
Gold member
posted Hide Post
Hi smith,

I changed my code as follows:

This message has been edited. Last edited by: Aditya,
 
Posts: 84 | Registered: June 05, 2006Report This Post
<RickW>
posted
If you use -SET &ECHO=ALL; it will help debug DM code.

Instead of -READ MYREPORT &REPORT.I.
use -READ MYREPORT &REPORT.A3.
as well as this

-SET &EX='txhdbo.prcFE_TXHRP0004_SECINT_RPT(&REPORT.EVAL)';

Rick
 
Report This Post
Gold member
posted Hide Post
Thanks rick and smith and Tewy,

Finally i was able to execute it coz of u ppl's help.

This message has been edited. Last edited by: Aditya,
 
Posts: 84 | Registered: June 05, 2006Report 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     using the o/p of one stored procedure to call another stored procedure

Copyright © 1996-2020 Information Builders