AddrScan processing includes the following steps:
Line Type Code | Description |
---|---|
0 | Firm line |
1 | PO box address line |
2 | Address line with both a range and a suffix word |
3 | Address line with a range but no suffix Address line with a suffix but no range |
4 | Rural route address line |
5 | Personal name Firm name (without firm words) Unidentified |
6 | Apartment type line |
7 | Possible city line |
8 | City, state, ZIP Code (or ZIP + 4) line |
9 | Ignore this line |
B | Box address line following a rural route address line |
C | City line |
M | Military address line |
P | Urb (P on mainframe, p on Windows and *Nix) |
R | Rural route address line preceding a box line |
S | State line |
W | PMB line |
X | City and state line |
Y | State and ZIP Code line |
Z | ZIP Code line |
Blank | No data present on input line |
Rule Description |
---|
Line type code 6 lines append to line type code 2 lines. |
Line type code 6 lines append to line type code 3 lines. |
Line type code 8 lines append to line type code 7 lines. |
Line type code B lines append to line type code R lines. |
- Lines with a line type code 6, 7, or B append to the original street/city/rural line and form a new concatenated line.
- The new concatenated line overlays the original street/city/rural line.
- AddrScan "reassigns" the line type code 6, 7, and B lines a new line type code of "9".
- These lines are now part of the new concatenated line used to build the standardized address. In effect, the line type code "9" means "ignore this address line," and thereby prevents the lines from appearing twice in the standardized address. The following example demonstrates line type code assignment.
An example of an address passed for concatenation follows. Note the input line type codes assigned to each line during the identification process.
PO Box 123 ** 1 **
123 Main Street ** 2 **
Apt 12A ** 6 **
Roseville MI 48066 ** 8 **
AddrScan appends the third line (input line type code 6) to the second line (input line type code 2). After concatenation, the address lines are ready for standardization.
Line Type Code | Description |
---|---|
0 | Firm |
1 | P. O. box |
2 | Street (with suffix) |
3 | Street (without suffix) |
4 | Rural route |
5 | Personal name (probable) |
8 | City/state/ZIP Code |
9 | Miscellaneous (i.e., C/O) |
M | Military |
P | Puerto Rico URB Data Note: Displays "P" (upper case) for the z/OS platform. For all other platforms, displays "p" (lower case).
|
Position | Description |
---|---|
1 | Source of Returned Line 1 |
2 | Source of Returned Line 2 |
3 | Source of Puerto Rico urbanization data (Index1 only) |
4 | Source of Returned City Line |
The ZIP Code is returned in a separate field and does not display in the returned address lines.
- Build the returned lines address by applying the format specified (Returned Line Options) to the standardized address to produce the returned lines address. AddrScan returns four 70-byte lines.
Line Number | Description |
---|---|
Line 1 | Street address data |
Line 2 | Street address data |
Line 3 | City and state |
Line 4 | Firm name (if supplied in the input record) |
- Pass the four-line address back to the calling program
in the requested format. For additional examples, refer to AddrScan Examples.
Example
The Returned Line Options are set to "56N". The following table describes this setting.
Parameter Position | Description |
---|---|
Return Line 1 | 5=Return first valid line above city line into Return Line 1 |
Return Line 2 | 6=Return second valid line above city line into Return Line 2 |
Return Line 3 | N=No special options used |
Return Line 4 | Remains blank - no firm line present |