|
STEPS: To Set Up a Network
Printer
Create a remote OUTQ with the CRTOUTQ command.
The syntax of the command is:
crtoutq
outq(QUSRSYS/TPTEST)
rmtsys(*INTNETADR)
rmtprtq(‘DeskJet’)
cnntype (*IP)
desttype(*OTHER)
mfrtypmd(*HP560C)
intnetadr(‘201.210.30.30')
The output queue is created in QUSRSYS. This is to help trick the AS/400 into allowing users to specify the
printer when using the basic assistance level.
The RMTSYS parameter is set to *INTNETADR, which allows us to specify the IP address of the LPD printer
queue.
The RMTPRTQ parameter tells the AS/400 which LPD to use.
The DESTTYPE parameter of *OTHER tells the AS/400 to run the HPT function and translate all output to the
printer type specified by the MFRTYPMDL parameter.
The *INTNETADR parameter contains the IP address of the printer.
Start the remote writer
The command syntax is:
Strrmtwtr outq(qusrsys/tcptest)
Create a virtual 3812 printer device
The command syntax is:
crtdevprt devd(TCPTEST)
devcls(*VRT) type(3812) model(1) online(*NO) font(011)
Be sure that the DEVD parameter is the same name as your remote OUTQ. When you run the command, you
will be notified that the OUTQ already exists. That’s ok.
|