home *** CD-ROM | disk | FTP | other *** search
- Program: Zone Data Incorporation Utility
- Version: 1.0
- Author: George Spafford
- Date: 03/26/92
- CopyRight: George Spafford
-
- Purpose:
-
- To add postal zone data to fourth class mailing data files.
-
- Procedures:
-
-
- -- Building your ZONES.DAT data file --
-
-
- The data file is a flat ASCII data file that can be created
- or edited with any DOS editor. EDLIN, EDIT, SemWare's QEdit,
- programmer's editors & so forth readily come to mind.
- Each line of the file contains 7 characters in the following
- left-justified format:
-
- LLLUUUZ
-
- LLL is the lower 3 digit prefix
- UUU is the upper 3 digit prefix
- Z is the zone that is used for this region.
-
- For example:
-
- 0040055
- 0060098
- 0100695
- 0700834
- 0840845
- 0851044
- 1051085
- 1091134
-
- These are the first entries for the zone table that is used in the
- 490-491 district. The USPS Official Zone Chart is available at your
- post office.
-
- What do the numbers mean? The first one says that if the first three
- digits of the zip code are greater than or equal to 004 and less than
- or equal to 005 then the zone 5 is the appropriate zone.
-
- When you create your data file, make sure everything is left justified and
- that there aren't any blank lines at the top or the bottom of the data file.
-
-
- -- Running the ZONE.EXE program --
-
-
- Data files must be in ASCII and they must be either fixed length
- or delimited.
-
- 1. Type Zone and press <Enter>.
-
- 2. Enter the name of the file that you want to convert and then
- press <Enter>.
-
- 3. Enter the name of the file that you want to create that will
- hold the corrected data file that has the zone numbers added
- to it. Note, it can NOT be the same name as your input file.
-
- 4. Tell the program whether the source file is a fixed length
- file or a delimited file.
-
- 5. If it is Delimited, then:
- a. Specify the delimiter character. For example: |
- b. If you typed the correct character, tell the program
- "Y" - that it is correct. If you did not, tell the
- program "N" for no.
- c. If all of the fields are encapsulated by quotation
- marks then answer "Y" at the literals prompt. Note,
- all fields must be individually surrounded by quotes
- for this option to work properly.
- d. Use a file viewer to check how many delimiters there
- are in each record. Enter this value in for the number
- of delimiters.
- e. While viewing the records, also note which field
- contains the zip code. Count from left to right and
- then enter the zip code's field number in when the
- program asks you for the zip field location.
- f. The program will now process the data.
- g. The zone number will be added to the end of each record
- in this order:
- Original Record + Delimiter + Zone + Delimiter.
- If a zone can not be identified, the two delimiters
- will still be added.
- h. goto Notes
-
- 6. If it is a fixed length file, then:
- a. Use a file viewer to find out at what byte location the
- zip code begins. Count the characters from the left to
- the right. When you get to the first character of the
- zip code, then this is the number to tell the program.
- b. While you are viewing the file, also note how long the
- zip code field is. Is it 5 characters, 10 characters,
- and so forth. Use this as the length of the field.
- c. The program will now process the data.
- d. The zone code will be added to the end of each record.
- The zone field will be two bytes long with the first
- byte being a space.
- If a zone can not be identified, two spaces will be
- added to the end of the record.
- e. goto Notes.
-
- NOTES:
-
- If the data file has foreign zip codes in the zip field, they will be
- processed just as if they were U.S. zip codes. If there are any alphabetic
- characters in the field, the program will throw up an error flag but it will
- continue processing. This is in case it runs across any foreign codes that
- are mixed in with the domestic.
-
-
- REGISTER:
-
- ZONE is shareware. It is not public domain. If you find it useful, please
- register it within 30 days of your first use. Only by your support can I
- continue to develop software at a reasonable price. It is priced at $10 per
- concurrently used copy.
-
-
- Sincerely,
-
- George Spafford
- 3001 LakeShore Drive, #329
- St. Joseph, MI 49085
-
- Data: (616) 468-5026 Queued Access BBS 14.4Kb USR Dual HST
- FIDOnet: 1:2340/0 NEC/NC Site.
- Sysop: Tim Akright
-
- And now for the unpleasantries:
-
- Code CopyRight: January 1992
-
- ZONE IS DISTRIBUTED AS IS. THE AUTHOR (GEORGE SPAFFORD) MAKES NO
- WARRANTY OF ANY KIND, EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED
- TO WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE,
- WITH RESPECT TO THIS SOFTWARE AND DOCUMENTATION. IN NO EVENT SHALL
- THE AUTHOR BE LIABLE FOR ANY DAMAGES, INCLUDING LOST PROFITS, LOST
- SAVINGS, OR ANY OTHER INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
- OUT OF THE USE OF OR THE INABILITY TO USE THIS PROGRAM.
- ----------------------------------------------------------------
-
-
-
-