Publication 91 - Confirmation Services Technical Guide
Publication 91 - Confirmation Services Technical Guide
Publication 91 - Confirmation Services Technical Guide
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
<strong>Confirmation</strong> <strong>Services</strong> <strong>Technical</strong> <strong>Guide</strong><br />
calculation of the first 19 data digits and is placed in the 20th position to meet<br />
Postal Service requirements.<br />
USS Code 3 of 9<br />
Code 3 of 9 requires a MOD 10 check sum in the 20th position in lieu of the<br />
optional standard MOD 43 check sum to meet Postal Service requirements. It<br />
should precede the stop character. The standard MOD 43 check sum must<br />
be omitted; otherwise, it will cause an invalid barcode that cannot be read.<br />
The algorithm for calculating the MOD 10 check digit appears at the end of<br />
this appendix. This mandatory MOD 10 check digit is a data element that<br />
must appear in human-readable form and is transmitted as data.<br />
MOD 10 Check Digit Calculations<br />
UCC/EAN Code 128<br />
Digit positions are numbered from right to left for this calculation so that the<br />
MOD 10 check-digit position counts as position 1. If concatenating the<br />
routing code (AI of 420) with the PIC, calculate the MOD 10 check digit<br />
beginning with position 1 up to and including the <strong>91</strong> AI. For example, the PIC<br />
number <strong>91</strong>01 1234 5678 <strong>91</strong>23 44 consists of the following:<br />
AI = <strong>91</strong> (UCC/EAN Code 128 only)<br />
Service Type Code = 01<br />
Customer ID (D-U-N-S Number) = 123456789<br />
4-digit Sequential Package ID = 1234<br />
MOD 10 check digit = 4<br />
The MOD 10 check digit is calculated using the following steps:<br />
Step 1: Set up a two-row matrix, labeled 1 through 18, 1 being the most<br />
significant position in the matrix (i.e., the right-most position). Starting from<br />
the least significant position of the matrix (position 18), copy each digit of the<br />
PIC all the way to position 2 (excluding the position of the check digit shown<br />
in the example below by a “?”).<br />
Position 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1<br />
PIC 9 1 0 1 1 2 3 4 5 6 7 8 9 1 2 3 4 ?<br />
The dimension of the matrix (the number of cells) will vary depending on the<br />
length of the Sequential Package ID. In this example, the Sequential<br />
Package ID is 4 digits long (1234), requiring a matrix with a total of 18 cells<br />
(including the cell for the check digit).<br />
Consequently, the length of the matrix may vary from 16 cells (if the<br />
Sequential Package ID is 2 digits long, which is very unlikely) to 22 digits (if<br />
the Sequential Package ID is 8 digits long, which is the maximum allowable<br />
length of the Sequential Package ID).<br />
80 <strong>Publication</strong> <strong>91</strong>, September 2002