IB - Developer Center    Forums  Hop To Forum Categories  FOCUS/WebFOCUS    [SOLVED] Regrading &RETCODE usage
Go
New
Search
Notify
Tools
Reply
  
-star Rating Rate It!  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: 9 | Registered: July 02, 2008Reply With QuoteEdit or Delete MessageReport This Post
Gold member
Posted Hide Post
OK, so why do you only post the working part of your code Smiler

What kind of errors do you get?


WF 7.6.4,
DB: Progress, UniVerse, SQLServer, MySQL, Oracle 9i.
 
Posts: 89 | Location: The Netherlands | Registered: February 05, 2007Reply With QuoteEdit or Delete MessageReport This Post
Master
Posted Hide Post
VK -

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


- Jack Gross
WF 7.6.7, Win
 
Posts: 532 | Location: NYC | Registered: January 11, 2005Reply With QuoteEdit or Delete MessageReport This Post
 Previous Topic | Next Topic powered by eve community  
 

IB - Developer Center    Forums  Hop To Forum Categories  FOCUS/WebFOCUS    [SOLVED] Regrading &RETCODE usage

Copyright © 1996-2008 Information Builders, leaders in enterprise business intelligence.