iSeries / AS400 FAQ : (Category) Programming : How can I print barcodes on an HP printer?
The most portable way (multiple printer vendors) would be to use AFPDS and the DDS keyword BARCODE. This would require setting the printer up as an AS/400 device. Configuring it as a remote output queue will result in the loss of several important features, like page range, restart, error detection, etc. If you must send the actual print commands to the printer, Pete Hall has published how he accomplished the job at http://www.pbhall.us/ (note the new web site) 27 Jun 2001 Vern Hamberg had this to say 29 Apr 1998 in MIDRANGE-L: Sending the ESC (x’1B’) code causes problems. You can get around this by creating a WSCST (workstation customization object) with a translation table (:EBCASCTBL) section. You need to select one of the characters to represent your ESC code (we use EBCDIC x’9e’ or some such). You put the table after the :ASCCPINFO.:EASCCPINFO. section. Use RTVWSCST to get the source. You get the same list of manufacturer/model values you get in CRTPRTF. Then insert the table sect