Newsletters   Subscriptions  Forums  Store  Media Kit  About Us  Contact  Search   Home 
fhg
Volume 4, Number 21 -- June 23, 2004

Printing Barcodes Without an IPDS Printer


Hey, Mike:


I've been given a challenge and don't know where to start. I've been asked to add a "code 3 of 9" barcode to a picking list, which is an SCS report. The only way they've ever produced barcodes is with an IPDS printer. They want the iSeries to print to a laser printer instead, since laser printers are cheaper than IPDS printers. They also would prefer not to embed printer control codes in RPG output. Is this doable?

--Thad


It is possible (and easy!) to print barcodes on a laser printer if the printer file is externally described.

First, use Display Device Description (DSPDEVD) to check the host print transform attribute. It needs to have a value of *YES. Use the Change Device Desc (Printer) (CHGDEVPRT) command to change the device if necessary.

Second, add the BARCODE keyword to the printer file. (See the DDS manual for more information about this splendid keyword.)

A            H1ID          12   O  4 41BARCODE(CODE3OF9 *HRZ *NOHRI *NOAST)

Third, create the printer file as DEVTYPE(*AFPDS).

CRTPRTF FILE(xxx/PICKLIST) +
        SRCFILE(xxx/QDDSSRC) +
        SRCMBR(PICKLIST) +
        DEVTYPE(*AFPDS)

--Mike Sansoterra


Michael Sansoterra is a programmer/analyst for i3 Business Solutions, an IT services firm based in Grand Rapids, Michigan. E-mail: msansoterra@i3BusinessSolutions.com

Sponsored By
ITERA

There's Nothing "Lite" About
Echo2 High Availability

iTera's award-winning Echo2 High Availability is reliable, feature-rich, and built from the ground up on powerful remote journaling and clustering technologies. And Echo2 has always been very affordably priced-so why settle for a "scaled down" HA solution?

Get a copy of the free paper: "Exploding 6 Common High Availability Myths."

Visit www.iterainc.com or call 1-800-957-4511.


Editors: Howard Arner, Joe Hertvik, Ted Holt,
Shannon O'Donnell, Kevin Vandever
Managing Editor: Shannon Pastore
Contributing Editors: Joel Cochran, Wayne O. Evans, Raymond Everhart,
Bruce Guetzkow, Marc Logemann, David Morris
Publisher and Advertising Director: Jenny Thomas
Advertising Sales Representative: Kim Reed
Contact the Editors: To contact anyone on the IT Jungle Team
Go to our contacts page and send us a message.


THIS ISSUE
SPONSORED BY:

Advanced Systems Concepts
iTera
WorksRight Software
Bug Busters Software Engineering


BACK ISSUES

TABLE OF
CONTENTS
IBM Enhances iSeries Access Family with Lots of Goodies

Printing Barcodes Without an IPDS Printer

Updating Through an SQL Cursor

Admin Alert: Changing the Limits on OS/400 Job Spool Files


The Four Hundred
The AS/400: 16 Years of Bending, Not Breaking

The eServer i5 Versus Linux Servers

IDC Says Server Market Will Grow 5% in 2004

Four Hundred Stuff
Vendors Offer Support for New UCCnet Services 2.3 Spec

Message Monitoring Software from CCSS Gets Tighter Security

Damon Delivers New GUI Editor with RPG Server Pages 3.0

Four Hundred Monitor


Copyright © 1996-2008 Guild Companies, Inc. All Rights Reserved.
Guild Companies, 50 Park Terrace East, Suite 8F, New York, NY 10034
Privacy Statement