Page 1 of 1

The IMB cannot be created w/o a populated barcode field

Posted: Fri Jan 25, 2013 9:14 am
by Eric
In order to print the intelligent mail barcode on your mail piece, you need to have data in the imbarcode and imbdigits fields at the time you either print or export. Adding the IMBarcode data occurs in the Print Settings window of AccuZIP6, when you check the Intelligent Mail box, choose All in the Scope area, and click Print or Continue.

In order for the imbarcode and imbigits fields to populate, this requires information to appear in the field named barcode. The barcode field gets populated during the validation event. Therefore, in order to print the intelligent mail barcode, you must validate your list prior to presorting.

If validation leaves some records with nothing in the field named Barcode, then those records will not get the IMBarcode or IMBDigits fields populated.

After validation, you can pull down the Edit menu to Command, create a new command, and run the command below:

Code: Select all

Replace barcode with "/"+LEFT(zip,5)+SUBSTR(PADL(ALLT(STR(100-(VAL(SUBSTR(zip,1,1))+VAL(SUBSTR(zip,2,1))+VAL(SUBSTR(zip,3,1))+VAL(SUBSTR(zip,4,1))+VAL(SUBSTR(zip,5,1))))),2,"0"),2,1)+"/" FOR EMPTY(barcode) AND ISDIGIT(LEFT(zip,1))
This command populates the barcode field when the barcode field is left empty after validation. In order for the command to work, it requires a ZIP Code in the field named zip.

After running the command, you're ready to presort your list and proceed as usual.