as400 printing QL420plus

Hi there,

I have a QL420 zebr4a wireless printer.

I have connected it to the network and it pings all is good.. it prints from windows.
But I cant get it to work when printing from as400/iseries..  it only prints blank pages..

Does anyone know if there are controll files sneeded to upload to printer, or
can anyone help me resolve my issue..

Following is the remote outq i created for it..

                          Change Output Queue (CHGOUTQ)                    
 Type choices, press Enter.                                                
 Output queue . . . . . . . . . . > SBWLES02      Name                    
   Library  . . . . . . . . . . . >   QGPL        Name, *LIBL, *CURLIB    
 Maximum spooled file size:                                                
   Number of pages  . . . . . . .   *NONE         Number, *SAME, *NONE    
   Starting time  . . . . . . . .                 Time                    
   Ending time  . . . . . . . . .                 Time                    
 Order of files on queue  . . . .   *FIFO         *SAME, *JOBNBR, *FIFO    
 Remote system  . . . . . . . . .   *INTNETADR    Character value, *SAME...
 Remote printer queue . . . . . .   'portLF1'     Character value, *SAME...
 Writers to autostart . . . . . .   1             1-10, *SAME, *NONE      
 Queue for writer messages  . . .   QSYSOPR       Name, *SAME              
   Library  . . . . . . . . . . .     QSYS        Name, *LIBL, *CURLIB    
 Connection type  . . . . . . . .   *IP           *SAME, *SNA, *IP, *IPX...
 Destination type . . . . . . . .   *OTHER        *SAME, *OS400, *OS400V2..
 Host print transform . . . . . .   *YES          *SAME, *YES, *NO        
Who is Participating?
AntonInfAuthor Commented:

here it is i found the ZPL command to allow AS400 to print directly to the Zebra printer..
Once I sent these files to the printer by copy or ftp then it started printing correctly..

This is what was needed... i think its because going form EBCIDC to ASCII these characters change
The blank pages are probably caused by the fact that the Zebra needs to be sent data in a language it can understand, in this case ZPL or EPL. The Windows driver handles this, but I don't know what facilities are available in AS400. However, the following link shows how to set up the queue:
AntonInfAuthor Commented:
I tried this but blank pages came out still... bit weird..... it still prints blanks... do i have to set the printer to EPL
Cloud Class® Course: SQL Server Core 2016

This course will introduce you to SQL Server Core 2016, as well as teach you about SSMS, data tools, installation, server configuration, using Management Studio, and writing and executing queries.

Gary PattersonVP Technology / Senior Consultant Commented:
No native ZPL or EPL driver exists for the AS/400.  

Your software needs to format the raw print stream.  AS/400 shops commonly use a package like TL Ashford's Barcode/400 to do this., or they hand-code EPL in their applications.

- Gary Patterson
AntonInfAuthor Commented:
Thank you for the update... we already printing on Zebra printers.... at the moment but for some reason this one wont accept anything..I research it again... last company i was at had to copy 2 config files to enable as4090 to read it properly..
Gary PattersonVP Technology / Senior Consultant Commented:
Here's IBM's "master" list of printers.  You'll see that none of the Zebra printers are directly supported.

- Gary Patterson
AntonInfAuthor Commented:
Yes, I just had a break threw apparently i need to change the format and controll prefix..

controll prefix to AAH
COntrol Prefix to 7EH

but now the chalenge is, how to change it on this QL420plus printer...
Gary PattersonVP Technology / Senior Consultant Commented:
Glad you found a silution  

Sounds like a setting in one of your custom or third party applications - not an OS feature.

MurpheyApplication ConsultantCommented:
Hi AntonInf,

If the Zebra is programmed with ZPL from a program or tool, it is more efficient and error free to FTP it to the printer instead of use the printer connected to an outq.

Good luck.
AntonInfAuthor Commented:
Thank you but the problem is I not sure of the commands to change the format and control prefix..
Gary PattersonVP Technology / Senior Consultant Commented:
Doesn't really matter how you get the output to the printer: LPR/LPD from a remote outq, or FTP.  Mostly depends on how your applications are written.

This isn't really an issue of "commands" (at least not IBM AS/400 commands), since these control codes are probably embedded in your applications.  You'll need to find the AS/400 application that is generating these printer data streams, determine how they are configured (are they soft-coded in a file, or are they hard-coded in an RPG or COBOL program?), or if a third-party barcode program is used (like TL Ashford, or MarkMagic), you may just need to go into that application and change the printer that is defined for this particular print job.

There is no guarantee that you'll be able to use this printer without making application programming changes if the document was specifically coded for a particular printer/printer language.

This printer (QL420plus) supports several languages:   CPCL, ZPL, EPL2, and XML.  Maybe you can configure it to start up in a particular emulation mode?

- Gary Patterson

MurpheyApplication ConsultantCommented:
Hi AntonInf, Gary,

Most of the time Gary is right, but..... it matters.
I connected dozens of Label printers (Zebra, Stripe, Esselte, UBI... etc) Almost all printer drivers I tried, inserted some unexpected/unwanted info in the print job, that will result in no- or  unexpected- output.
If you are sure that the driver is 100% transparent you can use it, otherwise go for the FTP option.
There are two advantages of using FTP
-- you can send it to an other (text) printer so that you get the label definition as text, this is a great help is you have problems with a label contents or layout.

-- You can type testlables yourself within an as/400 source file and print it by just ftp it to the printer.

Good luck,

Gary PattersonVP Technology / Senior Consultant Commented:
Like Murphy,  I've personally worked with a lot of label printers, and I agree that if everything is not configured properly, you can get "middleware interference" from print drivers, AS/400 Host Print transform, etc.

That said, a properly configured AS/400 LPD queue and printer file won't insert anything into the print stream - it just creates an LPR/LPD file containing the printer data stream, and sends it to the print server (which in this case looks like it is embedded in the wireless LAN card).

- Gary Patterson
AntonInfAuthor Commented:
Hi there,

Control and format Prefix to 7EH,AAH

I am pretty sure about changing the prefixes on the prionter itself..

But with this printer I am unable to change it for some reason would anyone know..

It looks like these are the charactors it throughs out to the printer... so it can understand
what is a control and hat is a format command..

MurpheyApplication ConsultantCommented:
Hi AntonInf,

7Eh is a "~"
AAh = '¬'.

Some codepages in the as/400 are translating this to "wrong" substitution characters during the EBCDC > ASCII conversion.

As far as i know, Zebraprinters expect 5Eh instead of 7Eh as escape character
5Eh = '^'

So please check the codepage of your printer(driver)

AntonInfAuthor Commented:
Yes strange,

I was told by the Zebra technicall guy you have to change these codes as this is the setting for our system
MurpheyApplication ConsultantCommented:

This was MY anwser (ID 33714585) where I told him to check the ASCII EBCDIC Conversion.....!!!
AntonInfAuthor Commented:
Further info for the QL420plus wireless on AS400

got it working..

I finally got the wireless printer to work without printing a blank label after each labell printed..
After all the research and trouble shooting to config the wireless printer on the AS400
You had to change on the printer..

   Control Prefix to :----- 7EH
   Format Prefix to  :----- AAH
The above changes allowed the printer to understand what the AS400 was giving it.
Then the next change was stopping the printer from printing a blank label after each labell printer.

This was done on the AS400 where I create my own drive from the *IBM4226 (AS400 standard) then
Renaming my copy of *IBM4226 to QL420plus.. Then I edited QL420plus and removed the Form Feed instruction from the driver, recompiling the driver, through command CRTWSCST.
Final step was to enter QL420plus into the outq as shown below. And the blank page stopped printing.
Peter BCommented:
I know this is a old one but it helped us a lot!

We were very glad to find this answer regarding to the empty labels.

For us we had to do it a little bit different:
and then we removed the form feed lines.
CRTWSCST after that and everything worked just fine!

Thank you!
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.