If you want to print from InterForm400 on a printer, that is defined via a printer device, then there only a few things that you should consider.
A very fast way to create both the printer device and related output queue is to copy the commands below, and replace the <Printer name> with the name of the printer, that you want to create:
CRTDEVPRT DEVD(<Printer name>) DEVCLS(*LAN) TYPE(3812) MODEL(1) LANATTACH(*IP) PORT(9100) FONT(11) PRTERRMSG(*INFO) TRANSFORM(*YES) MFRTYPMDL(*HP4) RMTLOCNAME('222.2.1.235') SYSDRVPGM(*IBMSNMPDRV)
VRYCFG CFGOBJ(<Printer name>) CFGTYPE(*DEV) STATUS(*ON)
STRPRTWTR DEV(<Printer name>)
The first command creates the printer device and output queue (the output queue will be created in library QUSRSYS), the second command vary the device on. The third command starts the printer writer.
Some explanations to the parameters of the CRTDEVPRT command:
PORT
The usual port number to use is 9100, but you can refer to your printer e.g. via a browser to verify.
FONT
This value is irrelevant for InterForm400, but you need to set a font.
PRTERRMSG
It is a good idea (but not necessary) to specify PRTERRMSG(*INFO) instead of the default value *INQ. This value will make the printer job automatically recover from a message if possible. if e.g. the printer runs out of paper the printer job halts with an error. When you add paper the printer job will detect this and ‘reply’ to the message automatically.
TRANSFORM
This must be set to *YES, but the merged InterForm400 spooled files are not transformed via Host Print Transform.
MFRTYPMDL
Like the font parameter the value is irrelevant for merged InterForm400 spooled files, but a value must be selected.
RMTLOCNAME
Identification of the printer either via IP-address or name.
SYSDRVPGM
Try first with *IBMSNMPDRV or *HPPJLDRV.