Re: Postal Barcode /MainFrame Cobol

From: Robert Heady (r.heady_at_liant.com)
Date: 11/04/03


Date: Tue, 04 Nov 2003 17:05:50 GMT


"jdrewf" <member40224@dbforums.com> wrote in message
news:3557345.1067954639@dbforums.com...
>
> Is anyone doing postal barcode in cobol ?
>
> and if so, do you have any samples.
>

There is an sample program, envelope.cbl, in Liant's RM/COBOL for 32-bit
Windows that will generate POSTNET barcodes. It uses line drawing features
that are specific to RM/COBOL to print the barcode.

For specifications of postal barcodes see chapter 4, POSTNET Barcodes in:
http://pe.usps.gov/cpim/ftp/pubs/Pub25/pub25.pdf

The basics of it is:

Postnet barcodes can represent five-(ZIP), nine-(ZIP+4), or eleven digit
(ZIP+4+Delivery Point) ZIP code information. Each code character is made up
of five bars. Specific combinations of two full bars and three half bars
represent digits 0 thru 9.

                 Numeric Binary Code
                  Value Value
                --------- ------------
                | | | 74210 |
                --------- ------------
                    1 00011 0 - half bar 1 - full bar
                    2 00101
                    3 00110
                    4 01001
                    5 01010
                    6 01100
                    7 10001
                    8 10010
                    9 10100
                    0 11000

The POSTNET bar code always begins and ends with a frame bar (Full or tall
bar).
To ensure POSTNET accuracy a correction character must included immediately
before the rightmost frame bar. The correction character is always the digit
that, when added to the sum of the other digits in the bar code, result in a
total that is a multiple of 10.
The delivery point digits in the delivery point bar code are the last two
digits in the street address.

The width of the bars must be 0.020 +/- 0.005 inches.
The height of the full bars must be 0.125 +/- 0.010 inches.
The height of the half bars must be 0.050 +/- 0.010 inches.
The space between the bars must be between 0.012 and 0.040 inches.

Five-digit ZIP code (32 Bars) 1.245 > < 1.625 inches
Nine-digit ZIP code (52 Bars) 2.075 > < 2.625 inches
Eleven-digit ZIP code (62 Bars) 2.495 > < 3.125 inches

-Rob



Relevant Pages

  • Re: Extract en recognize barcode from image file.
    ... I've been working on recognizing EAN barcodes from images. ... Average of several lines for the color of the bars ... For the pictures, remove .th in the links to have real size pictures ...
    (comp.lang.c)
  • [OpenCV] Extract en recognize barcode from image file.
    ... I've been working on recognizing EAN barcodes from images. ... digit with the help of OCR software but with "Open Computer Vision ... Average of several lines for the color of the bars ...
    (comp.lang.c)
  • Re: [OpenCV] Extract en recognize barcode from image file.
    ... about recognizing barcodes from images but from bars not from the ... Then, I have problems with some barcodes with some reflections, some ... bars won't be continue bars so ... ...
    (comp.lang.c)
  • Re: Barcodes no longer scan
    ... XP is probably producing a more acurate calculation when ... using one driver and the barcode would read but when using another driver it ... After examining the barcodes, the one printed at 203dpi had some narrow bars ...
    (microsoft.public.windowsxp.print_fax)
  • Re: A Gathering of the Tribes Peaceful Freedom Assembly July 1st ~ 9th, 2007
    ... The digits of whistler's hands composed the following: ... No he was convicted and is behind bars. ... I had a copy of the article but came up blank so I must have deleted it or am spelling his name wrong. ... I think plunker was on top of it at the time. ...
    (alt.gathering.rainbow)