Calling AddrScan With A User-Written Driver - Finalist - 10.0

Finalist Guide

Product type
Software
Portfolio
Verify
Product family
Data Quality - Postals
Product
Finalist
Version
10.0
Language
English
Product name
Finalist
Title
Finalist Guide
Copyright
2023
First publish date
1984
Last updated
2024-05-15
Published on
2024-05-15T00:57:22.811031

The steps to call AddrScan with a user-written driver are:

  1. Define a local CALLAREA structure.
  2. Initialize the entire CALLAREA structure to blanks except for pAddrAnch (ADDRPASS-ANCHOR) which should be HIGH-VALUES.
  3. Set any members of the CALLAREA structure that you want to remain the same from call to call (for example, the maximum length of the standardized address lines).
  4. Initialize the input address lines of the CALLAREA structure to blanks (also do this before each subsequent call to AddrScan).
  5. Move the data from your input record to the appropriate members within the CALLAREA structure.
  6. Call the AddrScan function, passing the address of the CALLAREA structure.
  7. Perform any custom processing using the returned address lines, returned city/state line, and returned ZIP Code field within the CALLAREA structure.
  8. After AddrScan processing, set pAddrOpts (ADDRPASS-OPTIONS) to HIGH-VALUES to terminate AddrScan and make one last call.