Loading Zip Code Data

Run the zip code interface supplied with Dovetail Agent to load zip code data into table_zipcode.

The interface is located in the zip code directory and consists of two mandatory files:

Three other files can be created to assist with the interface: the country, state, and time_zone mapping files. See Creating a Mapping File for more information.

To run the interface

  1. Edit the fc.env file with the correct logon parameters.
  2. Copy the zip code data file to the zip code directory.
  3. Rename the file zipcode.in, or edit the interface program and change the name of the input file in the program to match the file you have supplied.
  4. Execute the interface. The command line to execute the interface is:

    cscript /nologo load_zip.js <delete_old>

    where: <delete_old> is either true or false. If <delete_old> is set to true, all of the records in table_zipcode will be deleted before the new data is loaded. The default value is false.

The program prints out its status as it runs. The interface also generates several output files you can read for more detailed information:

See Also

Optional - Set Up Zip Codes

Purchasing Zip Code Data

Creating a Mapping File

Next

Creating a Mapping File

Loading Zip Code Data