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



Jerry, some people might say that sounds like an input validation
failure - but not me. :-)

Trevor Briggs
Analyst/Programmer
Lincare, Inc.
(727) 431-1246
TBriggs2@xxxxxxxxxxx
-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx
[mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Jerry C. Adams
Sent: Wednesday, September 12, 2012 9:33 AM
To: 'RPG programming on the IBM i / System i'
Subject: RE: Problem with dates while converting RPGIII to IV

Dave,

It depends on how you do the conversion.

For example, where A is 3.0, X = 300 and Y = 700,
C X ADD Y A
would *not* cause a machine check. The result (A) would simply overflow
resulting in A = 0.

But,
/free
A = x + y
/end-free

does result in a machine check because EVAL (which is what free format
uses
here) checks for overflow.

I once had to put MONITORs around a string of calculations (EVALs)
because
the @#$% purchasing "managers" couldn't define pricing factors
correctly.

Jerry C. Adams
IBM i Programmer/Analyst
Military Intelligence is not a contradiction in terms, "Light Infantry"
is!

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
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.