× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



It seems most likely the error is with the IF syntax in the given:

> if workc < 0 then;
> set workc = 0
> end;

Presumably it should be:

> if workc < 0 then
> set workc = 0;
> end if;

http://publib.boulder.ibm.com/infocenter/iseries/v5r4/index.jsp?topic=/db2/rbafzmstifstmt.htm

Oddly, I do not see the semicolon listed in the syntax diagram at the above link, but it is in the example.

Without any ELSEIF or ELSE, an example:
IF search-condition THEN SQL-procedure-statement ;
END IF ;

FWiW: Using the Run SQL Scripts feature of V5R4 iNav, the above noted error in IF-condition syntax was both highlighted and positioned to.

Regards, Chuck

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.