• The Four Hundred
  • Subscribe
  • Media Kit
  • Contributors
  • About Us
  • Contact
Menu
  • The Four Hundred
  • Subscribe
  • Media Kit
  • Contributors
  • About Us
  • Contact
  • Printing Barcodes Without an IPDS Printer

    June 23, 2004 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

    Share this:

    • Reddit
    • Facebook
    • LinkedIn
    • Twitter
    • Email

    Tags:

    Sponsored by
    Maxava

    Migrate IBM i with Confidence

    Tired of costly and risky migrations? Maxava Migrate Live minimizes disruption with seamless transitions.

    Upgrading to Power10, Power11, or cloud hosted system, Maxava has you covered!

    Book A Consultation Today

    Share this:

    • Reddit
    • Facebook
    • LinkedIn
    • Twitter
    • Email

    ProData Now Supports Database Utility on Linux The eServer i5 Versus Unix Servers

    Leave a Reply Cancel reply

Volume 4, Number 21 -- June 23, 2004
THIS ISSUE
SPONSORED BY:

Advanced Systems Concepts
iTera
WorksRight Software
Bug Busters Software Engineering

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

Content archive

  • The Four Hundred
  • Four Hundred Stuff
  • Four Hundred Guru

Recent Posts

  • With Power11, Power Systems “Go To Eleven”
  • With Subscription Price, IBM i P20 And P30 Tiers Get Bigger Bundles
  • Izzi Buys CNX, Eyes Valence Port To System Z
  • IBM i Shops “Attacking” Security Concerns, Study Shows
  • IBM i PTF Guide, Volume 27, Number 26
  • Liam Allan Shares What’s Coming Next With Code For IBM i
  • From Stable To Scalable: Visual LANSA 16 Powers IBM i Growth – Launching July 8
  • VS Code Will Be The Heart Of The Modern IBM i Platform
  • The AS/400: A 37-Year-Old Dog That Loves To Learn New Tricks
  • IBM i PTF Guide, Volume 27, Number 25

Subscribe

To get news from IT Jungle sent to your inbox every week, subscribe to our newsletter.

Pages

  • About Us
  • Contact
  • Contributors
  • Four Hundred Monitor
  • IBM i PTF Guide
  • Media Kit
  • Subscribe

Search

Copyright © 2025 IT Jungle