BTW This is what the manual tells:
5.6 BARCODE (Bar Code) Keyword
Use this field-level keyword to print a field as a user-specified bar code. BARCODE is valid only for Intelligent Printer Data Stream* (IPDS*) printers and only for printer
files with device type *IPDS or *AFPDS specified.
The format of the keyword is:
BARCODE(bar-code-ID [height] [[*HRZ | *VRT]
[*HRI | *HRITOP | *NOHRI] [*AST | *NOAST]
[check-digit] [unit-width]
[wide/narrow-ratio]])
The bar-code-ID parameter is required. Valid values for the bar code ID are listed in Figure 5-6.
The height parameter is optional, but if it is specified, it must be the second parameter following the keyword. Valid values for the bar code height are 1 through 9 lines. The
value you specify for the bar code height does not include the human readable interpretation below the bar code. If you do not specify the height parameter, the printer uses a
default height.
You can specify the last 6 parameters (all optional) in any order. Using these parameters, you can specify that BARCODE:
Print the bar code horizontally or vertically. The default is horizontal printing (*HRZ).
Include or exclude the human readable interpretation of the bar code. The default is to include the human readable interpretation printed at the bottom of the bar code
(*HRI).
Indicate that the human readable interpretation should be printed at the top (*HRITOP) of the bar code. (Check individual printer manuals for different bar code support of
*HRITOP.)
Include or exclude asterisks around the human readable interpretation for CODE3OF9 barcodes. The default is to exclude the asterisks (*NOAST).
Select the check digit type. This is a 1-character hex value that cannot be hex FF.
Specify the width (in inches) of the narrow bar/space. It is specified as an expression of the form (*WIDTH value). For more information on how to specify expressions,
see "Syntax Rules" in topic 2.2. The valid values for the parameter are 0.007 through 0.208.
Specify the ratio of the wide bar/space to the narrow bar/space. It is specified as an expression of the form: (*RATIO value). The valid values for the parameter are 2.00
through 3.00.
Note: The overall barcode width is dependent on:
Ratio or width parameter in user DDS.
Actual customer data in the barcode.
Limitations of printer hardware, such as PEL density, pins and so on.
The width and ratio parameters are ignored for the 4234 and 4224.
For more information about the 4224 printer models, see the 4224 Printer Models 1xx and 2xx Product and Programming Descriptions, GC31-2551.
If you specify an optional parameter that does not apply to the bar code ID you have specified, the printer ignores the optional parameter.
If you attempt to print a bar code on a printer that does not support bar codes, the digits in the code are treated as text, and a diagnostic message results stating that the bar
code could not print.
The line and position you specify for the field is used as the upper left corner of the bar code. Because the line specified in the DDS is the base line (the imaginary line on
which characters are printed) and this is used as the upper edge of the bar code, the bar code appears to extend down from the bottom of the line you specify.
Figure 5-6 describes valid data types and field lengths for the BARCODE field.
Figure 5-6. Valid Bar Code Definitions
,,$
Bar Code ID Data Type Field Length
<<$
MSI S 1 through 31(1)
<<$
UPCA S 11
<<$
UPCE S 10
<<$
UPC2 S 2
<<$
UPC5 S 5
<<$
EAN8 S 7
<<$
EAN13 S 12
<<$
EAN2 S 2
<<$
EAN5 S 5
<<$
CODEABAR A 1 through 50
<<$
CODE128 A 1 through 50
<<$
CODE3OF9 A 1 through 50
<<$
INTERL2OF5 S 1 through 31
<<$
INDUST2OF5 S 1 through 31
<<$
MATRIX2OF5 S 1 through 31
<<$
POSTNET S 1 through 31
<<$
RM4SCC A 1 through 31
<<$
JPBC A 7 through 50
44$
Note: (1) The 4234 Printer only supports 14 digits.
Figure 5-7 describes the supported bar codes.
Figure 5-7. Bar Codes Supported by DDS
,,,,,$
Default Check
Digits per Range of Characters Digits Default Check Valid Check
BARCODE Code Allowed Generated Digits Printed Digits
<<<<<$
MSI (changed 31(1) 0 through 9 2 Modulus 10 No 01 through
Plessey) 09
<<<<<$
UPC-A 11 0 through 9 1 No 00
<<<<<$
UPC-E 10 0 through 9 1 No 00
<<<<<$
UPC-2 digit add on 2 0 through 9 No No 00
(must follow a UPC
A or E bar code)
<<<<<$
UPC-5 digit add on 5 0 through 9 No No 00
(must follow a UPC
A or E bar code)
<<<<<$
EAN-8 7 0 through 9 1 Yes 00
<<<<<$
EAN-13 12 0 through 9 1 Yes 00
<<<<<$
EAN-2 digit add on 2 0 through 9 No No 00
(must follow an EAN
8 or 13 bar code)
<<<<<$
EAN-5 digit add on 5 0 through 9 No No 00
(must follow an EAN
8 or 13 bar code)
<<<<<$
INDUST2OF5 or 31 0 through 9 1 Yes 01 02
industrial 2 of 5
<<<<<$
MATRIX2OF5 or 31 0 through 9 1 Yes 01 02
matrix 2 of 5
<<<<<$
INTERL2OF5 or 31 0 through 9 1 Yes 01 02
interleaved 2 of 5
<<<<<$
CODEABAR Up to 50 0 through 9, 1 Yes 01 02
characters A through D
(begin/end only),
-, ., $, /, +, and :
<<<<<$
CODE128 Up to 50 Refer to 1 No 01(2) 02
characters Appendix G, CODE128
Character Set
<<<<<$
CODE3OF9 or code 3 Up to 50 0 through 9, No No 01 02
of 9 characters A through Z
(upper case only),
-, ., $, /, +, %,
and a blank
<<<<<$
POSTNET Up to 31 0 through 9 1 Yes Ignored
characters
<<<<<$
RM4SCC Up to 31 0 through 9 1 Yes Ignored
characters A through Z
<<<<<$
JPBC Up to 50 0 through 9, A 1 Yes 00 01(3)
characters through Z, and -
44444$
Notes:
1. The 4234 Printer only supports 14 digits.
2. The value 01 for the check digit is not valid for some printers.
3. The value 01 provides migration support for application programs that use an AFP font to print Japan
Postal Bar Codes. Data written into the field must be valid characters in the AFP font. The
application program must also write the start, stop, and check digit characters.
CODEABAR field data must begin with an A, B, C, or D and must end with an A, B, C, or D. For example, A11224455C or D33447799D.
Do not specify BARCODE in the same field with the CHRSIZ, CHRID, CVTDTA, DATE, EDTCDE, EDTWRD, FONT, HIGHLIGHT, PAGNBR, TIME, or UNDERLINE keywords.
See the CVTDTA keyword for information on coding IPDS bar code commands yourself.
If you specify CHRSIZ at the record level, it applies to all fields in that record. If you specify BARCODE in one of those fields, the BARCODE keyword is not allowed.
You cannot specify BARCODE on the same record format with BLKFOLD, CPI, or DFNCHR.
When you specify BARCODE on a numeric field, the number of decimal positions must be zero.
When you specify BARCODE on a constant field, the only valid bar code IDs are CODEABAR, CODE128, and CODE3OF9, and you must also specify the DFT keyword either
implicitly or explicitly.
You should specify DEVTYPE (*IPDS) or DEVTYPE(*AFPDS) on the CRTPRTF command when BARCODE is specified in the file.
BARCODE is allowed only on data types S and A (see Figure 5-7 for restrictions).
Option indicators are not valid for this keyword.
Japan Postal Bar Codes (bar-code-ID = JPBC) uses only the bar-code-ID parameter, the bar code print orientation parameter (^*HRZ | *VRT‘), and the check digit parameter.
All other parameters have predetermined values so any input for them is ignored.
User specified check digits are not validity checked and could cause bar code errors if they are not valid. The Intelligent Printer Data Stream Reference manual contains
more information on bar codes and valid check digits.
Main Topics
Browse All Topics





by: murphey2Posted on 2008-07-18 at 07:01:06ID: 22035852
Hi Praveen,
For the reading, you need a bascode reader (mostly attached to USB).
this will fill the field where the cursor is with the barcode information.
doesn't matter if this is Notepad, dos-prompt or a AS/400 terminal emulation.
Writing barcodes is done via a barcode field in a printer file ( see snippet)
The example prints a 6 position picknumber in barcode for the warehouse.
Good luck,
Murph
Select allOpen in new window