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


  • Subject: Re: Numeric Validation
  • From: Richard Wilson <arw@xxxxxxxxxxxxxx>
  • Date: Thu, 15 Jul 1999 09:38:54 +0000

Another 'me too' post - I'd like a copy too

Thanks

Richard Wilson



Malcolm Westley wrote:

> The clock chimed 9:44 AM -0400 7/12/99 when
> as400mail@smtpmail.nationcredit.com scribbled:
> >Nick,
> >
> >Interogating a alpha field as numeric needn't be all that difficult seems
> >to me.
> >But, how do you intend to "convert" a decimal-positioned "numeric"? For
> >example,
> >if your alpha field = '1000.50' and (stripped of decimal point) you move the
> >alpha field into a numeric field defined as 10 0, the resultant numeric could
> >become a value = "100,050". Conversely, if your alpha field is '100,050'
> >and you
> >move it into a numeric field defined as 10 2, the resultant numeric could
> >be of
> >value = "1000.50". How many variations on the decimal positioning are
> >possible?
> >
> >BTW what version of RPG are you on?
> >
> >David Stobberingh
> >
> >
> >> I am looking for a way to validate that an alpha field is a valid numeric,
> >this will include comma's and decimal points, leading or trailing blanks etc.
> >Also this will have to be converted to a numeric field if it is a valid.
> >
> >Nick Runnalls
> ><
> >
> If anyone is interested, I have a program (also a module) that translates
> alpha to numeric or the reverse. It also validates the alpha field. It can
> handle up to 25 digits. I use it to validate character input fields  as
> numbers, format numeric fields inside strings, etc..
>
> Malcolm Westley
>
> +---
> | 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 ...

Replies:

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.