Follow these steps to resolve the mising
postal code information.
- Add a Stream Lookup step to your transformation by clicking the Design tab, expanding the Lookup folder, then selecting Stream Lookup.
- Draw a hop from the Filter Missing Zips to the Stream lookup step. In the dialog box that appears, select Result is FALSE.
-
Create a hop from the Read Postal Codes step to the Stream
lookup step.
- Double-click the Stream lookup step to open the Stream Value Lookup window.
- Rename Stream Lookup to Lookup Missing Zips.
-
From the Lookup step drop-down box, select
Read Postal Codes as the lookup step. Perform the
following:
- In the key(s) to look up the value(s) table, define the CITY and STATE fields .
- In row #1, open the drop-down menu in the Field column and select CITY.
- Click in the LookupField column and select CITY.
- In row #2, open the drop-down menu in the Field column and select STATE.
-
Click in the LookupField column and select
STATE.
- Click Get Lookup Fields to pull the three fields from the Read Postal Code step.
- POSTALCODE is the only field you want to retrieve. To delete the CITY and STATE lines, right-click in the line and select Delete Selected Lines.
- In the New Name field, change the name POSTALCODE toZIP_RESOLVED and verify that Type is set to String.
-
Select Use sorted list (i.s.o. hashtable).
- Click OK to close the Stream Value Lookup edit properties dialog box.
- Save your transformation.