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




     There is a command line option TRUNCNBR in the CRTBNDRPG command. 
     This will cause overflow values to be truncated. This doesn't work 
     on calculations performed within expressions (eval and other 
     opcodes that us the extended factor 2 field). In cases where you 
     know you'll have an overflow occur, just go back to the standard 
     math ops in place of the expression calcs.
     
     HTH
     eric.delong@pmsi-services.com
     


______________________________ Reply Separator _________________________________
Subject: Overflow errors on add 
Author:  <MIDRANGE-L@midrange.com > at INET_WACO
Date:    9/23/98 1:42 PM


     
Hi,
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? 
Euan.
     
     
+---
| 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 
+---
     


+---
| 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 thread ...


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.