Support 805.461.7300
Sales
Our Technology. Your Success.

Add SCF and Zone information to your database

Follow these instructions to make the command work:

  • Open AccuZIP6 5.0, any database, then select Commands… from the Edit menu.
  • Enter the code below in the command statement syntax area.
  • Change the 3-digit ZIP Code at the beginning of the command to the STARTING ZIP Code point from where the Zones will be calculated.
  • Click Run

* Get start 3-digit zipcode
cZip3="980"
cZip3=LEFT(cZip3,3)

* Suppress Messages
ON ERROR com_Mesg=MESSAGE()

* Add SCF column; Add Zone column
ALTER TABLE (ALIAS()) ADD COLUMN scf C(3)
ALTER TABLE (ALIAS()) ADD COLUMN zone C(3)

* Add SCF number
REPLACE ALL scf WITH substr(GetLineValue(ADDBS(xDefFldr)+"iPresort\DMM\AZL002C.txt",INT(VAL(LEFT(zip,3))),67,.T.,.T.),9,3)

* Get Zone Chart line
ps5ZoneChartData=GetValue(addbs(xdeffldr)+"iPresort\DMM\azformat2.txt",cZip3,1,1,1,1,"","",1,1,1)
ps5ZoneChartData=" "+substr(ps5ZoneChartData,4)

* Add Zone number
REPLACE all zone WITH SUBSTR(ps5ZoneChartData,val(left(zip,3))*2,1)

  • When the command is completed, close the Command window.
  • Pull down the View menu to List View Default to see the newly-added fields, then scroll to the right in your database until you see the zone and SCF fields.

« Back to Commands

I have gotten exceptional customer service from one of your employees. He has been unbelievably helpful onboarding me onto the software and he has taken the time to answer all of my questions and help me set up a lot of stuff that I needed to set up. He has gone above and beyond and has been extremely helpful and knowledgeable about the product. So far I love the product.
G.H, New Windsor, NY