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.



Read-Only Read-Only Topic
Go
Search
Notify
Tools
SQL-Error Cd...
 Login/Join
 
Platinum Member
posted
Is there a way to capture the SQL error code in focus files and do the looping accordingly....

sam/wf7.1.6/aix/oracle8i
 
Posts: 133 | Registered: May 12, 2007Report This Post
Platinum Member
posted Hide Post
Not sure what you mean by looping accordingly but the code below will provide you with SQL.

SET TRACEOFF = ALL
SET TRACEON = SQLAGGR//CLIENT
SET TRACEON = STMTRACE//CLIENT
SET TRACEON = STMTRACE/2/CLIENT
SET TRACEUSER = ON
SET XRETRIEVAL=OFF

The xretrieval will also allow you run the procedure without actually going to the rdbms to retrieve data.


Prod: WebFOCUS 7.1.6, Windows 2003

Dev: WebFOCUS 7.6.2, Windows 2003
 
Posts: 140 | Registered: May 02, 2007Report This Post
Platinum Member
posted Hide Post
Try querying either &FOCERRNUM or &RETCODE. I'm not sure you actually need to put these into files. You can, and should, interigate them immediately after your code. For example:
TABLE FILE CAR
PRINT *
ON TABLE HOLD
END
-RUN
-IF &FOCERRNUM NE 0 GOTO ERR_ROUTINE;
-IF &RETCODE NE 0 GOTO ERR_ROUTINE;

And yes, you can GOTO any lable to get yourself out of your loop that you referred to. Just remember you need to check these variables immediately after the code you're interested in because these variables are re-used and will only show you the values for the last commands it executed.


Data Migrator 5.3, 7.1, 7.6
WebFOCUS 7.1, 7.6, 7.7
SQL Server, Oracle, DB2
Windows
 
Posts: 126 | Registered: January 18, 2007Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic


Copyright © 1996-2020 Information Builders