Determining Your Address Format - Code-1_Plus - 5.0

CODE-1 Plus Guide for IBM i

Product type
Software
Portfolio
Verify
Product family
Data Quality - Postals
Product
CODE-1 Plus
Version
5.0
Language
English
Product name
CODE-1 Plus
Title
CODE-1 Plus Guide for IBM i
Copyright
2024
First publish date
1998
Last edition
2024-07-11
Last publish date
2024-07-11T02:24:45.851825

The options above indicate how the address elements are stored in your input file. Option M indicates that all street address parts are located in a single field:

....+....1....+....2....+....3....+....4....+....5
123 Main Street, Apt. 24A

Option F indicates that the street address parts are located in two or more separate fixed fields:

....+....1....+....2....+....3....+....4....+....5
123       Main        St        W

And option L indicates that the street address is stored in two or more fields that correlate to the address "lines" as they would appear on a label:

....+....1....+....2....+....3....+....4....+....5
123 Main Street               Apt.24A

For a more detailed description of these three options, please read the following sections.

Single Field Address Formats

The single field address format is the simplest and, perhaps, most common. In this scenario, all street address parts — including the house number, leading directional, street name, street suffix, trailing directional, apartment designator, and apartment number — are stored as a continuous string in a single fixed field. For example, in the figure below an input file layout has the street address stored in a single fixed location.

Example for Single Field Address Formats

Positions 1-49 of this example contain all the street address parts. Additionally, the city, state, and ZIP Code are located in a separate single fixed field, positions 50-79.

Multiple Field Address Formats

With the multiple field format, the street address parts — including the house number, leading directional, street name, street suffix, trailing directional, apartment designator, and apartment number — are stored in two or more separate fixed fields.

When you choose this option CODE-1 Plus strings together the separate fields in the order that you define them, deleting all extraneous spaces to form a continuous single street address line.

For example, the figure below illustrates an input file layout that has the street address parts stored in six separate fields.

Multiple Field Address Formats

  • Positions 1-6 of this example contain the house number

  • Positions 7-8 contain the leading directional

  • Positions 9-28 contain the street name and street suffix

  • Positions 29-31 contain the trailing directional

  • Positions 32-41 contain the apartment designator

  • Positions 41-48 contain the apartment number.

The city and state are located in positions 50-69, and the ZIP Code is located in another separate field, positions 75-79.

Multiple Line Address Formats

The multiple line format also has address parts stored in two or more fields on the input file. Multiple line fields correspond to the "lines" of a standard address label. For example, in the figure below the address label displays four lines of information.

Figure 1: Multiple Address Lines on a Label

This example is a typical label format where address line 1 contains street information and address line 2 contains apartment information. The next figure illustrates the input file layout that corresponds to the label lines shown above.

Address Lines Corresponding to Label Example

Positions 1-29 of the input file contain the first address line of a label, and positions 30-49 contain the second address line.