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.
The SQLOUT will only hold a result set from SQL calls and not return codes. As you are performing an update (same for deletes, drops etc.) you do not get a result set, so the fact that your MYOUT file is empty is as it should be.
To trap the return codes add -? & to the end of your fex to see what internal variables there might be to assist you.
Look for &RETCODE and possibly &EXITRC. One of these might be populated with the value you are setting in your stored proc.
T
In FOCUS since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2
WebFOCUS App Studio 8.2.06 standalone on Windows 10
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004
i'm actually doing several things in the SP (all within a transaction with commit and rollback). the sp contains a "RETURN @retval" where @retval is INT...very simple. i realize there's no SQLOUT (since I'm not returning a result set) but I didn't know any other way to get the return value. I'll check the & and see if anything shows up (thanks Tony)
&RETCODE. Actually, since the integer return is not real descriptive, I've decided to do a SELECT at end of the SP that is a 1 col 1 record text of what the SP result is.
Now, I've got a related question. In my SP, I'm trapping any errors (such as key violations) and doing the following: SELECT top 1 'Key Violation' as Msg FROM tableA
which should return a nice text based msg in SQLOUT. However, the SP doesn't actually get to that part...it just breaks and returns its own error diagnostic info. Anyone know how to avoid this?
Hi, sorry to resurrect an old thread. i'm using &RETCODE to grab the return code (if not 1, there was some datasource error...) but i cannot figure out how to capture WHAT that error was and display it to the user. i suspect the following snippet holds the key, but i don't know what "SP" refers to. can anyone clarify a bit on this (perhaps provide a quick code sample):
Actually, since the integer return is not real descriptive, I've decided to do a SELECT at end of the SP that is a 1 col 1 record text of what the SP result is.