Focal Point
[SOLVED] Regrading &RETCODE usage

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/9621015703

November 17, 2008, 04:39 AM
Vasantha kumar
[SOLVED] Regrading &RETCODE usage
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
November 17, 2008, 11:37 AM
Frans
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.
November 17, 2008, 04:57 PM
j.gross
VK -

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


- Jack Gross
WF through 8.1.05