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     how to check whether a query was successful?

Read-Only Read-Only Topic
Go
Search
Notify
Tools
how to check whether a query was successful?
 Login/Join
 
Guru
posted
Hi,
I've two insert queries which are mutually exclusive.if my first query is successful then i want to skip the second one, and if first query doesnot do any insert then only i would like to get my 2nd query executed. Is there any keyword or syntax in WebFOCUS through which i could check whether a particular query was successful or not?
I am using Oracle8i,WinXP and WF713...
Thanks,
Shankar


WF 8.1.04,Windows 7,
DataBase: Oracle 11g,Output :Excel,PDF,HTML
 
Posts: 281 | Location: India | Registered: April 21, 2007Report This Post
Gold member
posted Hide Post
Hi Shankar,

If you are using MODIFY for your inserts, then check out Statistical Variables
in Dialog Manager.

I do not know wether MAINTAIN is populating some variables also. And I am pretty sure SQL Passthrou will not. These two you would have to check out yourself.


Roland

Prod: WF 7.1.5
Test: WF 7.6.4
Unix Sun Solaris
HTML, PDF, EXL2K
 
Posts: 54 | Location: Switzerland | Registered: May 13, 2003Report This Post
Master
posted Hide Post
Can you can post your code? This should be relatively easy to do.


In FOCUS since 1985. Prod WF 8.0.08 (z90/Suse Linux) DB (Oracle 11g), Self Serv, Report Caster, WebServer Intel/Linux.
 
Posts: 975 | Location: Oklahoma City | Registered: October 27, 2006Report This Post
Virtuoso
posted Hide Post
Something like this should work
-*FEX1
TABLE FILE CAR
PRINT CAR
END
-IF &LINES GT 0 GOTO EXIT;
-RUN
-*FEX2
TABLE FILE CAR
PRINT SALES
END
-EXIT


In Focus since 1993. WebFOCUS 7.7.03 Win 2003
 
Posts: 1903 | Location: San Antonio | Registered: February 28, 2005Report This Post
Expert
posted Hide Post
quote:
insert queries
must be an oxymoron (a phrase in which two words of contradictory meaning are used together for special effect, for example, “wise fool” or “legal murder”) - "insert" suggests Update, "queries" suggests Retrieval.

I stick the following code after every END statement (as well as other WF statements):
-RUN
-IF &FOCERRNUM NE 0 THEN GOTO FOC_ERROR;


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
Guru
posted Hide Post
Hi,
Thanks for all the suggestions.
I solved the issue using READ command of WebFOCUS.
Thanks,
Shankar


WF 8.1.04,Windows 7,
DataBase: Oracle 11g,Output :Excel,PDF,HTML
 
Posts: 281 | Location: India | Registered: April 21, 2007Report 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     how to check whether a query was successful?

Copyright © 1996-2020 Information Builders