|
Hi Joel, I agree. But TESTN isn't really a good choice there, because ASCII data, say from Excel, generally has a leading sign for negative numeric fields, which TESTN would say is not numeric. Regards, Peter Dow Dow Software Services, Inc. 909 425-0194 voice 909 425-0196 fax ----- Original Message ----- From: "Joel Fritz" <JFritz@sharperimage.com> To: <RPG400-L@midrange.com> Sent: Wednesday, November 01, 2000 9:16 AM Subject: RE: TESTN > 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 > +--- +--- | 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.