You can print directly from the AS/400 to an network-attached printer by creating a remote output queue.
A remote output queue is created with the following command:
CRTOUTQ
OUTQ(OUTQLIB/OUTQNAME)
MAXPAGES(*NONE)
SEQ(*FIFO)
RMTSYS(*INTNETADR)
RMTPRTQ(PASSTHRU)
AUTOSTRWTR(1)
MSGQ(QSYSOPR)
CNNTYPE(*IP)
DESTTYPE(*OTHER)
TRANSFORM(*YES)
USRDTATFM(*NONE)
MFRTYPMDL(*EPFX870)
WSCST(*NONE)
IMGCFG(*NONE)
INTNETADR('111.111.111.111')
CLASS(A)
FCB(*NONE)
DESTOPT(XAIX)
SEPPAGE(*NO)
USRDFNOPT(*NONE)
USRDFNOBJ(*NONE)
USRDRVPGM(*NONE)
SPLFASP(*SYSTEM)
TEXT('Specify a meaningful Description')
DSPDTA(*YES)
JOBSEP(0)
OPRCTL(*YES)
DTAQ(*NONE)
AUTCHK(*OWNER)
AUT(*USE)
You mentioned that you have an Epson FX-880. V4R5 doesn't include a driver for an 880, but there is one for a 870 (EPFX870). Hopefully, this one will be close enough to work for you. You will also notice that I've specified DESTOPT(XAIX) in the example above. This will allow users to specify and print multiple copies of a spool file using the TCP/IP LPD/LPR interface.
To get things configured, you will need to supply an output queue name, a valid internet address and some meaningful text.
After the *OUTQ is created it will automatically start each time the QSPL subsystem is started. You can stop printing to the printer with the ENDWTR command and then restart printing with the STRRMTWTR command.
This was first published in April 2001