Support 805.461.7300
Sales
Our Technology. Your Success.

Create BCC ZIP+4 Return Codes Field

This command will take the information from the errno_, dpv_, nxi_, movetype_, and matchflag_ fields and create and populate a returncodes field with the BCC-equivalent ZIP+4 return codes

ON ERROR com_Mesg=MESSAGE()
SET SAFETY OFF
ALTER TABLE ALIAS() ADD COLUMN returncode C(10)
Replace returncode with "22" FOR "6.1" $ LEFT(errno_,3)
Replace returncode with "21" FOR "4.1" $ LEFT(errno_,3) AND EMPTY(dpv_)
Replace returncode with "23" FOR "05" $ nxi_ OR "14" $ nxi_ OR "19" $ nxi_
Replace returncode with "26" FOR "G" $ matchflag_
Replace returncode with "27" FOR "K" $ matchflag_
Replace returncode with "28" FOR "F" $ matchflag_
Replace returncode with "31" FOR "04" $ nxi_ OR "06" $ nxi_ OR "07" $ nxi_ OR "08" $ nxi_ OR "09" $ nxi_ OR "10" $ nxi_ OR "11" $ nxi_ OR "12" $ nxi_ OR "13" $ nxi_ OR "15" $ nxi_ OR "16" $ nxi_ OR "17" $ nxi_ OR "18" $ nxi_ OR "20" $ nxi_ OR "66" $ nxi_
Replace returncode with "32" FOR "S" $ LEFT(dpv_,1) OR "D" $ LEFT(dpv_,1)
Replace returncode with "33" FOR "3.1" $ LEFT(errno_1) OR "N" $ LEFT(dpv_,1)
Replace returncode with "36" FOR "I" $ movetype_
Replace returncode with "37" FOR "F" $ movetype_
Replace returncode with "38" FOR "B" $ movetype_
Replace returncode with "39" FOR "L" $ lacs_
Replace returncode with "98" FOR DELETE()
Replace returncode with "NO-STAT" FOR "Y" $ SUBSTR(dpv_,5,1)
Replace returncode with "VACANT" FOR "Y" $ SUBSTR(dpv_,4,1)

« Back to Commands

I Just wanted to let you know we are in the Postal Fort Worth Texas Division and I received a call from someone in their office today wanting to ask me some questions. He asked if I understood about the changes with the move update starting for this month, then he asked me what software we were using. I explained to him that we have been using AccuZIP Software for the last 20 years and I thought you were the #1 in the United States. I told him that you were the only software displayed in the Postal Section of the Smithsonian Institute. He asked me if I had to manually change the updated addresses and I told him no that the Software did it for us and I could print a report showing the old address and the new address. He told me out of 32,000 names that were updated only 3 were wrong and he just wanted to call me to see what Software we were using. Thanks for such good software and support from your company over the past 20 years.
C.K., Wichita Falls, TX