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     [SOLVED] Regrading &RETCODE usage

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Regrading &RETCODE usage
 Login/Join
 
Member
posted
Hi,

I have an issue using &RETCODE in the IF statement.

I have written the following code to check whether the INSERT statement is passed or not.

Insert stmt;
-IF &RETCODE NE 0 THEN GOTO ERRPG ELSE GOTO SUC;
-ERRPG
-TYPE FOCERNUM &FOCERNUM
-TYPE RETCODE &RETCODE
-SUC
*SQL stmt to display in report*

My issue is the insert statement is working correctly but the SQL statement that follows -SUC doesn't work and i am getting no report as an output.

Is my understanding correct? Please correct me if i am wrong.

Thanks in advance,
Vasanth

This message has been edited. Last edited by: Kerry,


Vasantha kumar
7.1.4/ Unix / OF:EXL2K
 
Posts: 23 | Registered: July 02, 2008Report This Post
Guru
posted Hide Post
OK, so why do you only post the working part of your code Smiler

What kind of errors do you get?


Test: WF 8.2
Prod: WF 8.2
DB: Progress, REST, IBM UniVerse/UniData, SQLServer, MySQL, PostgreSQL, Oracle, Greenplum, Athena.
 
Posts: 454 | Location: Europe | Registered: February 05, 2007Report This Post
Virtuoso
posted Hide Post
VK -

Add
-RUN
between the end of the SQL request and the -IF test.


- Jack Gross
WF through 8.1.05
 
Posts: 1925 | Location: NYC | In FOCUS since 1983 | Registered: January 11, 2005Report 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     [SOLVED] Regrading &RETCODE usage

Copyright © 1996-2020 Information Builders