Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Cobol > Re: Numeric com...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 11 of 13 Topic 4046 of 4172
Post > Topic >>

Re: Numeric comparison

by Howard Brazee <howard@[EMAIL PROTECTED] > Mar 10, 2008 at 09:37 AM

On Mon, 10 Mar 2008 15:56:54 +1300, "Pete Dashwood"
<dashwood@[EMAIL PROTECTED]
> wrote:

>Jeff, here's a thought: Why validate phone numbers at all?
>
>They are NOT valid unless you actually dial them and get a pick up.
>
>Phone numbers can contain all kinds of characters: +64 7 1234567, 
>1-800-CALLME,  ... not just dashes. It is a pointless validation.
>
>The primary use of this information is so a Human can use it to make a
call. 
>Humans can see immediately whether what is recorded is a phone number or 
>not.

I agree 100%.   I get so frustrated when a web application doesn't
accept my 80226-2895 zip code, or a phone number has to be entered
with dashes but not parenthesis around the area code, etc.   

The only time it needs to be validated in most applications is if the
computer is expected to make a phone call.

I did work for a company that handled subscription request cards.   We
needed to do data validation of addresses from around the world.   It
was more of a data cleansing thing though.   We had a dirty word file
and were looking for joke entries.    A harder thing to look for was
duplicate entries that weren't quite filled in the same way.   Not an
easy task.

Doing that I learned that there are lots of postal code syntaxes
around the world.    But unless you have data cleansing to do, just
make your field large enough to handle any of the postal codes, and
accept whatever they gave you.    We're not doing arithmetic with it.

For data cleansing, the check for valid SSaN will be more complete
than the one the OP gave.
 




 13 Posts in Topic:
Numeric comparison
jeff <jmoore207@[EMAIL  2008-03-09 14:16:59 
Re: Numeric comparison
"tlmfru" <la  2008-03-09 16:41:46 
Re: Numeric comparison
jeff <jmoore207@[EMAIL  2008-03-09 14:49:47 
Re: Numeric comparison
"William M. Klein&qu  2008-03-09 22:27:05 
Re: Numeric comparison
docdwarf@[EMAIL PROTECTED  2008-03-09 23:26:52 
Re: Numeric comparison
jeff <jmoore207@[EMAIL  2008-03-09 16:36:31 
Re: Numeric comparison
docdwarf@[EMAIL PROTECTED  2008-03-10 01:29:54 
Re: Numeric comparison
"HeyBub" <he  2008-03-09 19:03:03 
Re: Numeric comparison
"Pete Dashwood"  2008-03-10 15:56:54 
Re: Numeric comparison
"HeyBub" <he  2008-03-10 08:20:25 
Re: Numeric comparison
Howard Brazee <howard@  2008-03-10 09:37:35 
Re: Numeric comparison
tim <TimJ@[EMAIL PROTE  2008-03-10 06:54:56 
Re: Numeric comparison
Howard Brazee <howard@  2008-03-10 09:39:34 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Wed Jul 9 1:57:39 CDT 2008.