|
Would you mind to post it here?
With Regards,
S.Arumuganambi
Email: NambiS@alfuttaim.co.ae <mailto:NambiS@alfuttaim.co.ae>
Phone: 9714 - 3027208 / 599966 - Ext.(208)
To Learn to Walk , we must risk falling over.
-----Original Message-----
From: Malcolm Westley [mailto:mwestley@ic.net]
Sent: Tuesday, July 13, 1999 4:49 AM
To: MIDRANGE-L@midrange.com
Subject: Re: Numeric Validation
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 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.