The two call areas for EXTADDR2 are defined in the supplied EXT2PARM copybook and as a 600-byte array defined in the EXT2DATA copybook. On IBM i, the ILE RPG versions are named EXT2PARMR and EXT2DATAR.
Position |
Field Name |
Length |
Description |
---|---|---|---|
Input Fields |
|||
1 |
EXT2-ADDR-LINE-1 |
100 |
Address Line 1. |
101 |
EXT2-ADDR-LINE-2 |
100 |
Address Line 2. |
201 |
EXT2-ADDR-LINE-3 |
100 |
Address Line 3. |
301 |
EXT2-ADDR-LINE-4 |
100 |
Address Line 4. |
401 |
EXT2-ADDR-LINE-5 |
100 |
Address Line 5. |
501 |
EXT2-ADDR-LINE-6 |
100 |
Address Line 6. |
601 |
Reserved |
20 |
|
621 |
EXT-NO-MERGE-SEC-PMB |
1 |
Secondary and PMB merge switch:
|
622 |
EXT-SKIP-FIRM |
1 |
Firm identification switch:
|
623 |
EXT-SKIP-URB |
1 |
Urbanization identification switch:
|
624 |
EXT-SKIP-CSZ |
1 |
City, State, and ZIP Code identification switch:
|
625 |
Reserved |
76 |
|
Output Fields |
|||
701 |
EXT2-P9IZIP |
5 |
Output ZIP Code. ZIP Code identified unless the City/State/ZIP identification switch was set to "S". |
706 |
EXT2-P9IZIP4 |
4 |
Output ZIP+4 add-on. ZIP + 4 add-on code identified unless the City/State/ZIP identification switch was set to "S". |
710 |
EXT2-P9IAD1 |
100 |
Primary address line. |
810 |
EXT2-P9IAD2 |
100 |
Secondary address line. |
910 |
EXT2-P9IFRM |
100 |
Firm name. |
1010 |
EXT2-P9ICST |
100 |
City/state. |
1110 |
EXT2-P9IURB |
35 |
Urbanization name. |
1145 |
Reserved |
11 |
|
1156 |
EXT2-INPUT-TYPES |
6 |
Input types. Should be set to "A " (uppercase "A" and five spaces) to activate processing using the Firm, Urbanization, and City/State/ZIP identification switches. |
1162 |
Reserved |
39 |
|
EXT2PARM Copybook
EXT2DATA Copybook
The second parameter that must be passed to EXTADDR2 is defined in the table below and in the EXT2DATA copybook. EXTADDR2 returns information from the six input lines that was not used to create the data fields that are passed to the matcher to code an address (this data is referred to as Additional Input Data). This call area is required but the information is returned for your convenience and is not needed to code an address.
Position |
Field Name |
Length |
Description |
---|---|---|---|
1 |
EXTRA-DATA-LINE1 |
100 |
Extra data from input line 1 |
101 |
EXTRA-DATA-LINE2 |
100 |
Extra data from input line 2 |
201 |
EXTRA-DATA-LINE3 |
100 |
Extra data from input line 3 |
301 |
EXTRA-DATA-LINE4 |
100 |
Extra data from input line 4 |
401 |
EXTRA-DATA-LINE5 |
100 |
Extra data from input line 5 |
501 |
EXTRA-DATA-LINE6 |
100 |
Extra data from input line 6 |