Prerequisites
The printer must be attached to the network and TCP/IP must be configured, so that the printer can be reached from the IBM i server by its IP address or network name.
Context
You want to define the printer in the IBM i operating system using an output queue object (*OUTQ).
Procedure
- To create an output queue for a network attached printer or print server, enter the following command:
CRTOUTQ OUTQ(<library>/<output queue name>) RMTSYS('<network printer name>') RMTPRTQ('<remote printer queue>') AUTOSTRWTR(1) CNNTYPE(*IP)
DESTTYPE(*OTHER) TRANSFORM(*YES) MFRTYPMDL(<printer type>) SEPPAGE(*NO) WSCST(<library name>/<name>)
-
OUTQ(<library>/<output queue name>)
Make sure that you create the output queue in a library that is in the library list of the SAP work processes, such as
QUSRSYS.
-
MFRTYPMDL(<printer type>)
The parameter
MFRTYPMDL (
Manufacturer type and model ) is used together with
TRANSFORM(*YES) and offers a variety of predefined
printer drivers. It is used when sending EBCDIC based spool data from a non-SAP (legacy) application to an ASCII based printer, for example when printing the spooled output of IBM i commands that offer an option
OUTPUT(*PRINT). Choose a type and model similar to the printer
that you are using with this output queue.
To configure the remote output queue for the default size of the paper loaded in the printer, you can specify a special value for the manufacturer type and model, such as
MFRTYPMDL(*WSCSTA4) for A4 sized paper (210 x 297 mm).
-
WSCST(<library name>/<name>)
If you specify
MFRTYPMDL(*WSCSTA4), you must specific a workstation customization object in parameter
WSCST of the command
CRTOUTQ.
To create a workstation customization object
(*WSCST), enter the following commands:
-
CRTSRCPF FILE(<library>/QTXTSRC)
-
RTVWSCST DEVTYPE(*TRANSFORM) MFRTYPMDL(<printer type>) SRCMBR(<name>) SRCFILE(<library>/QTXTSRC)
-
CRTWSCST WSCST(<library>/<name>) SRCMBR(*WSCST)
If you specify a value other than
*WSCST<xxx> for the parameter
MFRTYPMDL, you can leave the default value set to
WSCST(*NONE).
- To start the writer job for the output queue, enter the following command:
STRRMTWTR OUTQ(<library>/<output queue name>)
Note
For remote output queues that are used without device description, writer jobs are started automatically if the output queue parameter AUTOSTRWTR (
Writers to autostart ) is set to a value other than
*NONE.