validating bank routing #'s

Walter Vaughan wvaughan at steelerubber.com
Wed Nov 8 13:23:14 PST 2006


GCC Consulting wrote:

> Does anyone have a routine available for validating bank routing #'s?
> 
> Richard Kreiss 

First strip out any non-numeric characters (like dashes or spaces) and make sure 
the resulting string's length is nine digits,

7 8 9 4 5 6 1 2 4

Then multiply the first digit by 3, the second by 7, the third by 1, the fourth 
by 3, the fifth by 7, the sixth by 1, etc., and add them all up.

(7 x 3) + (8 x 7) + (9 x 1) +
(4 x 3) + (5 x 7) + (6 x 1) +
(1 x 3) + (2 x 7) + (4 x 1) = 160

If this sum is an integer multiple of 10 (e.g., 10, 20, 30, 40, 50,...) then the 
number is valid, as far as the checksum is concerned.

Now, if this were a normal developer community, someone would code that in 
filepro and post it here.

--
Walter


More information about the Filepro-list mailing list