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.
I have a stored procedure that returns a '1' using "SELECT '1'" to signify that it completed successfully. I use this stored proc to update a table in WebFOCUS as follows:
ENGINE SQLMSS SET DEFAULT_CONNECTION BI SQL SQLMSS EX dbo.usp_FSG_ScoreCard_Exception_Group '&METRIC', &SOURCE ,&METRIC_GK, '&REQUESTOR' , &REASON, '&TYPE' , NULL ; END
In addition, I have another stored proc that I call after the "usp_FSG_ScoreCard_Exception_Group" stored proc as follows:
ENGINE SQLMSS SET DEFAULT_CONNECTION BI SQL SQLMSS EXEC dbo.usp_LoadFSG_ScoreCardMissingTimeCard END
My issue is that the second stored proc "usp_LoadFSG_ScoreCardMissingTimeCard" takes around a minute to run since it's updating a huge table. So, since WebFOCUS waits for the second stored proc to complete, a simple update using the first stored proc seems like it takes a minute to run.
How do I make WebFOCUS aware that the first stored proc is complete, start the second stored proc and exit out of my fex without having to wait for the response from the second stored proc?This message has been edited. Last edited by: <Emily McAllister>,
Originally posted by Ricardo Augusto: Can you use 2 fex, each one to each SP.
I will try to create a second fex for the second stored proc? I am new to WebFOCUS, so how would I call the second fex from the first one? Do I just include it using "-INCLUDE"?
Originally posted by BabakNYC: Can you run your fex's in deferred mode?
Alternatively, you could schedule them to run using CMRUN from the OS command line or in a batch executable.
The fex is in a html file. So I am not sure how I would run it in a deferred mode? I need to execute the second procedure only after the first one is done executing.
I will try to create a second fex for the second stored proc? I am new to WebFOCUS, so how would I call the second fex from the first one? Do I just include it using "-INCLUDE"?
Yes. Use like this -INCLUDE IBFS:/WFC/Repository/app_name/full_path/fex2.fex
WebFOCUS 8.1.05 / APP Studio
Posts: 272 | Location: Brazil | Registered: October 31, 2006
Sure, I feel generous today. Add the following to / before your TABLE FILE request
SET XRETRIEVAL = OFF
SET TRACEUSER = CLIENT
SET TRACEON = STMTRACE//CLIENT
SET TRACEON = SQLAGGR//CLIENT
SET TRACESTAMP = OFF
SET TRACEWRAP = 132
SET EMGSRV = ON
The results of this can be pasted directly into TOAD, or you SQL tool, for analysis (explain plan).
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 2005