|
No way. TRUNCNBR(*NO) would influence only "old" op-codes (Z-ADD, ADD...). EVAL enforces thoughtful programming, and ignoring the overflow is certainly not best business practice. Vanya Jovic, Canada On Tue, 8 Dec 1998, RAJEEV ASTHANA wrote: > > Hi Sudha, > > It may be that your program has been compiled using option > TRUNCNBR(*NO). > Change it to *YES and I hope you won't get overflow error. > > Thanks, > > Rajeev. > > > From: "Sudha Ramanujan" <sramanujan@sungardfutures.com> > To: <MIDRANGE-L@midrange.com> > Subject: Overflow values > Date: Tue, 8 Dec 1998 14:39:03 -0600 > Reply-To: MIDRANGE-L@midrange.com > > Hi all, > > While using EVAL for computing numbers, if the result of computing gets > larger than the result field definition, the throws up an error. Is > there > any way to get around this? Like say truncate (as it does in Move) some > EVAL(T)?? :) If I use *PSSR, the program goes to the top of the line > and I > loose all the work that is done till then. > (Right now, am using a very large number for computation and comparing > that > with *hival of the defined number and then if larger, moving hival! > Would > prefer a much smarter way to do this.) > > All the help appreciated. > > Thanks, > Sudha > > +--- > | 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 > +--- > > > > ______________________________________________________ > Get Your Private, Free Email at http://www.hotmail.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 > +--- > +--- | 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.