CDS264

Print Postnet Bar Code

Last Revised: 07/29/07

A postnet bar code is a bar code used by the Post Office for routing mail.  It can be printed by the sender and be located above or below the recipient's address.  The Post Office will often print a postnet bar code in the lower right of the envelope.  If you print the postnet code by the address, then the Post Office does not need to print it also, and if you mail enough pieces at the same time, you are entitled to a lower postage rate.

CDS264 currently supports the following printers:

  1. Any printer that supports PCL, as specified in Printer Type Maintenance (SMC)
  2. Okidata Dot Matrix printers running Microline (ML) emulation including Printer Type Codes OK520/521 and OK590,591
  3. IBM 4232 Dot Matrix printer, Printer Type Code I4232
  4. Eltron/Zebra Thermal printers, Printer Type Code E2046

CDS264 will print the zip code, zip+4 if provided, and delivery point bar code if provided.

CALL "CDS264",Y6$,COL,ROW,ZIP$

CDS264
Y6$ The printer control variable, from CDS084.
COL The leftmost column where the bar code will be printed.
For dot matrix printers, COL is the @() location with 10 characters per inch.
For PCL printers COL is the number of dots in 300 per inch.
ROW The topmost row, in 300 dots per inch, where the bar code will be printed.  This value is ignored when using dot matrix printers, as CDS264 needs to be called at that point on the appropriate row on the page.  If the bar code is printed, then ROW will be incremented by 60 dots on PCL printers.
ZIP$ the zip code which can contain a 5 digit zip, a zip plus 4, and optionally the delivery point bar code.  Note that if the zip is blank or contains alpha characters, as do Canadian zip codes, then no error is generated, and nothing is printed.