I went through there myups account and coundn't find anything useful.  That
is why I posted here to see if anyone could think of anything faster than
what I came up with.

Where did you get your examples from?  The manual I am reading is completely
contrary to what you provided.

What I have is
1)sum all the odds
2)sum all the evens and multiply by 2
3)add results of 1) and 2) together
4) subtract 3) from the next multiple of 10
5 The remainder of 4 is your checkdigit.

Is yours just a different spin on this?  Or am I reading some manual from
the 20's?


----- Original Message -----
From: "pan" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, July 02, 2000 12:22 PM
Subject: Re: UPS CHECK DIGIT


>
> From: Sean Renet <[EMAIL PROTECTED]>
>
> > anyone have a tag to calcualte the ever annoying UPS CHECK DIGIT?
> >
>
> UPS Tracking Numbers appear in the following formats:
> 1Z 999 999 99 9999 999 9
> 9999 9999 999
> T999 9999 999
>
> (0123456789A~Z)
>
> You can also use reference numbers to track a shipment (shipper
> created).
>
> UPS uses MOD 10 check digits ....
>
> As an example, we will use 01234567890 as our first 11 digits
> Step 1. Sum all digits in the ODD positions.
> Example: 0 + 2 + 4 + 6 + 8 + 0 = 20
> Step 2. Multiply this SUM by 3.
> Example: 20 x 3 = 60
> Step 3. Sum all digits in the EVEN positions.
> Example: 1 + 3 + 5 + 7 + 9 = 25
> Step 4. Add the SUM from Step 3 to the PRODUCT in Step 2.
> Example: 25 + 60 = 85
> Step 5. The CHECKSUM value is the smallest number which when added
> to the SUM of Step 4 produces a multiple of 10
> Example: The smallest number which, when added to 85, produces a multiple
> of 10 is 5 (85 + 5 = 90). Therefore, our checkdigit for the number above
is 5.
>
> There are numerous sample implementations on the net. a cursory search
> found perl scripts, a javascript validator ... etc. etc.
>
> UPS provides a boat load of free software for developers ... sign up for a
> myUPS account and go to online tools. They have a very complete collection
> with lots of interfacing solutions/data formatting routines/error message
> return control algorithms/fully prepped datastreaming modules ....
> You can get inline html codings, datastream cgi access, or full blown
> third party developer utilities and documentation.
>
> Seems it would be easier to just use their tools and, if you need to do
any
> tracking number checking independent of their online system, all your
answers
> (specially prepped for their methods) are contained in the open source
code
> of their developer packages. I would be more confident of any CF tags that
> are based on UPS documentation - besides you'll be able to develop
templates
> that take advantage of all the UPS services besides just tracking.
>
> UPS doesn't call their developer tool set a SDK, but if you think of it as
> being that, you won't go wrong.
>
> Pan
>
>
> --------------------------------------------------------------------------
----
> Archives: http://www.eGroups.com/list/cf-talk
> To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.
>

------------------------------------------------------------------------------
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to