|
Well, there is the little thing about garbage data. The main use of testn I've seen is validating stuff parsed out of a text file. Chances are that '12G' or, for that matter, '12J' is not a valid number if it comes from say, an ASCII source. I've received support calls at 2AM on this sort of thing, and it's not fun > -----Original Message----- > From: Peter Dow [mailto:pcdow@MailAndNews.com] > Sent: Tuesday, October 31, 2000 5:25 PM > To: RPG400-L@midrange.com > Subject: Re: TESTN > > > Hi Dan, > > Hmmm. Cursing TESTN for telling you that a negative number is > a number? How > about just adding an extra statement: > > C TESTN WORK 4 81 > C 81 MOVE WORK NUMBER > 4 081 81 > > If 81 is on, it's a positive number. > > HTH, > Peter Dow > Dow Software Services, Inc. > 909 425-0194 voice > 909 425-0196 fax > > > +--- | This is the RPG/400 Mailing List! | To submit a new message, send your mail to RPG400-L@midrange.com. | To subscribe to this list send email to RPG400-L-SUB@midrange.com. | To unsubscribe from this list send email to RPG400-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-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.