× 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.



Steve,

I did some additional tests and you are correct; it does not compile with the spaces in the parentheses. Sorry for the false alarm.

I'm surprised the compiler disallows it.

-mark


On 1/21/2021 7:20 AM, Steve Ferrell via WDSCI-L wrote:
Hi Mark,

I tried this code on OS levels 7.3 and 7.4 and I get compile errors that match the verifier.

Dcl-s var int(10);
eval( h ) var = 10 / 2;
//eval(h) var = 10 / 2;
return;

Are you getting clean compiles with spaces?
I only get clean compiles and verifies without the spaces.

The Program verifier is created by the Compiler team and is generally in synch with current syntax.

If you do get different results, please contact IBM support so we can dig into this issue.

Thanks!

Steve Ferrell
w. www.helpsystems.com



-----Original Message-----
From: WDSCI-L<wdsci-l-bounces@xxxxxxxxxxxxxxxxxx> On Behalf Of mlazarus
Sent: Wednesday, January 20, 2021 5:17 PM
To: Rational Developer for IBM i<wdsci-l@xxxxxxxxxxxxxxxxxx>
Subject: [WDSCI-L] Syntax checking for Eval( h )

External: Pause and review the sender's email address, any URLs before clicking links, opening attachments, or following requests. When in doubt, contact the Service Desk.


I'm adding the half adjust modifier to an Eval statement. If I enter it as Eval(h) is passes syntax checking. If I enter it as Eval( h ) RDi flags it with a couple of bogus errors (hovering over the red X to the left of the statement number). Is there a fix for this? I am on version 9.6.0.9 20201112_1147.

-mark

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.