New RPM 7 is now available — see what’s new →

Setting up IBM i (AS/400) for ExcelliPrint

Q: How do I set up my IBM i (AS/400) to print to ExcelliPrint®?

A: Give each ExcelliPrint queue a printer device on IBM i: an IPDS device that sends to the ExcelliPrint computer’s address and the queue’s port, with a PSF configuration object (PSFCFG). You create both from an IBM i command line. Your OS release may vary; the ExcelliPrint manual has the details, and z/OS setup too.

On IBM i, the writer sends a spooled file to printer device XCPPRT1, which uses PSF configuration XCPPSF1; the device sends IPDS over TCP/IP to the ExcelliPrint computer at 10.1.1.20, port 5001, where the queue accepts jobs from IBM i's address

In the examples, replace:

PlaceholderMeaning
XCPPRT1The name of the printer device on IBM i
XCPPSF1The name of its PSF configuration object
10.1.1.20The IP address (or DNS name) of the ExcelliPrint computer
5001The ExcelliPrint queue’s port

In ExcelliPrint, add IBM i’s address to the queue’s Accept jobs from list, or the queue will refuse the connection.

1. Check that IBM i can reach ExcelliPrint

PING RMTSYS('10.1.1.20')

2. Create the PSF configuration object

IPDSPASTHR(*YES) lets SCS spooled files print through the same device. RLSTMR(*SEC15) releases the device 15 seconds after the last job, so other systems can use the queue too, and changes to the queue’s settings apply from the next job.

CRTPSFCFG PSFCFG(QGPL/XCPPSF1) IPDSPASTHR(*YES) RLSTMR(*SEC15)
TEXT('ExcelliPrint 10.1.1.20:5001')

3. Create the printer device

CRTDEVPRT DEVD(XCPPRT1) DEVCLS(*LAN) TYPE(*IPDS) MODEL(0)
LANATTACH(*IP) AFP(*YES) PORT(5001) FONT(11)
FORMFEED(*AUTOCUT) RMTLOCNAME('10.1.1.20')
USRDFNOBJ(QGPL/XCPPSF1 *PSFCFG)
TEXT('ExcelliPrint 10.1.1.20:5001')

4. Vary the device on and start its writer

VRYCFG CFGOBJ(XCPPRT1) CFGTYPE(*DEV) STATUS(*ON)
STRPRTWTR DEV(XCPPRT1)

Print a spooled file to the device’s output queue; the job appears in ExcelliPrint’s Jobs list.

Pointing an existing device at ExcelliPrint

  1. End the writer: ENDWTR XCPPRT1 *IMMED.
  2. Vary off the device: VRYCFG CFGOBJ(XCPPRT1) CFGTYPE(*DEV) STATUS(*OFF).
  3. Change its address and port: CHGDEVPRT DEVD(XCPPRT1) RMTLOCNAME(’10.1.1.20’) PORT(5001). If the device has no PSF configuration object yet, create one as in step 2 and add USRDFNOBJ(QGPL/XCPPSF1 *PSFCFG).
  4. Vary on the device and start the writer (STRPRTWTR).

Job details

ExcelliPrint names files and lists jobs with the details IBM i sends with each spooled file: job name, user, spooled file name and number, form type, library and output queue. IBM i sends them by default; make sure the PSF configuration doesn’t suppress them.

Continue to: Glossary →