|
> I am in the process of converting my source from RPG3 to RPG4 and have the > following piece of code. > > RPG3 > add x y > > which translates to > RPG4 > eval x = x + y > > Now RPG3 is forgiving of overflow errors, but RPG4 is not. > How can I trap potential overflow errors? > Can I set a compiler option (in CRTBNDRPG) to show this condition? well, that's one way. or you could change it back to add x y. the eval gives this error, the others do not. nj +--- | This is the Midrange System Mailing List! | To submit a new message, send your mail to MIDRANGE-L@midrange.com. | To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com. | To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com. | Questions should be directed to the list owner/operator: david@midrange.com +---
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 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.