Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Setting up AS400 to print to Laser printer

Status
Not open for further replies.

nickpatel

Programmer
Jan 5, 2004
41
US
I;m a newbie at this AS400 stuff. My tech left and now I'm stuck trying to figure out how to print reports from AS400 to a laser printer. Does anyone know how to setup the device for ip printing to laser printer in AS400? I have tried crtdevprt but I am at at lose in putting in correct parameters. Is there other means I should be exploring? Any help apprciated.

thanks
nick
 
I'm assuming your printer is on the network and has an IP address. I use a remote outq setup to print to network printers. Here's the command:
crtoutq ----> press F4 to prompt

Create Output Queue (CRTOUTQ)

Type choices, press Enter.
Output queue . . . . . . . . .OUTQ > TESTQ
Library . . . . . . . . . . *CURLIB
Maximum spooled file size: MAXPAGES
Number of pages . . . . . . . *NONE
Starting time . . . . . . . .
Ending time . . . . . . . . .
+ for more values
Order of files on queue . . . . SEQ *FIFO
Remote system . . . . . . . . . RMTSYS > '157.198.999.999' <-- enter printer IP here
Remote printer queue . . . . . RMTPRTQ printername
Writers to autostart . . . . . . AUTOSTRWTR > 1
Queue for writer messages . . . MSGQ QSYSOPR
Library . . . . . . . . . . . *LIBL
Connection type . . . . . . . . CNNTYPE > *IP
Destination type . . . . . . . . DESTTYPE > *OTHER
Host print transform . . . . . . TRANSFORM *YES
Manufacturer type and model . . MFRTYPMDL *HP5
-->Use F4 to prompt for printer type
Workstation customizing object WSCST *NONE
Library . . . . . . . . . . .
Image configuration . . . . . . IMGCFG *NONE
Destination options . . . . . . DESTOPT XAUTO XAIX


Print separator page . . . . . . SEPPAGE *NO
User defined option . . . . . . USRDFNOPT *NONE


Use the help function (F1) to assist with the parms, use F4 to display choices for each parm
 
Thanks for answering back os400. If I create an outq like the one you showed me, will I still have to create printer device to where I want print or is this outq the only thing necessary to print. I created the outq and released the report (in that outq) but it is saying "This file is not associated with a started printer." I'm I still on the right track? Here is my outq:


Queue: NICKLOCAL Library: QGPL

Status:
Writer active . . . . . . . . . . . : N
Writer name(s) if active . . . . . . :
Output queue held . . . . . . . . . : N
Maximum spooled file size:
Number of pages . . . . . . . . . . : *NONE
Starting time . . . . . . . . . . . :
Ending time . . . . . . . . . . . . :
Writers to autostart . . . . . . . . . : 1
Display any file . . . . . . . . . . . : *NO
Job separators . . . . . . . . . . . . : 0
Operator controlled . . . . . . . . . : *YES
Order of files on queue . . . . . . . : *FIFO
Data queue . . . . . . . . . . . . . . : *NONE
Library . . . . . . . . . . . . . . :
Authority to check . . . . . . . . . . : *OWNER
Remote system . . . . . . . . . . . . : xx.xx.xx.XXX (I hid the ip number here)



Remote printer queue . . . . . . . . . : raw



Queue for writer messages . . . . . . : QSYSOPR
Library . . . . . . . . . . . . . . : *LIBL
Connection type . . . . . . . . . . . : *IP
Destination type . . . . . . . . . . . : *OTHER
Host print transform . . . . . . . . . : *YES
Manufacturer type and model . . . . . : *HP5
Workstation customizing object . . . . : *NONE
Library . . . . . . . . . . . . . . :
Image configuration . . . . . . . . . : *NONE
Destination options . . . . . . . . . : *NONE


Print separator page . . . . . . . . . : *YES
User defined option . . . . . . . . . : *NONE
User defined object:
Object . . . . . . . . . . . . . . . : *NONE
Library . . . . . . . . . . . . . :
Object type . . . . . . . . . . . . :
User driver program . . . . . . . . . : *NONE
Library . . . . . . . . . . . . . . :
Spooled file ASP . . . . . . . . . . . : *SYSTEM




thanks
Nick Patel
 
Looks like the writer did not start. You need to create a printer device for a remote outq. Try this:

strrmtwtr <-- press F4 to prompt

Start Remote Writer (STRRMTWTR)

Type choices, press Enter.

Output queue . . . . . OUTQ outq-name-here Library . . . . . . . . . . . *LIBL
Queue for writer messages . . . MSGQ *OUTQ
Library . . . . . . . . . . .
Form type options: FORMTYPE
Form type . . . . . . . . . . *ALL
Message option . . . . . . . . *NOMSG

Additional Parameters

Writer . . . . . . . . . . . . . WTR *OUTQ
Auto-end options: AUTOEND
Automatically end writer . . . *NO
If yes, when to end . . . . . *NORDYF


This should get you going.
 
Oooops: You need to create a printer device for a remote outq. Should read: You do not need to create a printer device for a remote outq.
 
Thanks for replying back os400. I tried you suggestion (including up to changing the outq library to qgl where my localnick outq is located), but it didn't work. The status says SND then when I go to 9=work with printing status it shows the following:

__ This file is not associated with a started printer.
__ This file is held.

Do you think it is because my outq is in qgpl vs qusrsys?
Anyway, if I do a 2=change status on

2_ This file is held.

and hit yes on release this file the status return to RDY.

any insight on this?

thanks
Nick Patel
 
Thanks, I finally got it to work. I have one final question. If I was using a canon type of printer or some other brand other than an hp or IBM (which I see as selections in parameters), how would I go about finding out what to fill in the parmeters of SYSTEM DRIVER PROGRAM and also the MANUFACTURE TYPE AND MODEL? Will I have to load the drivers on AS/400?

Thank you very much for your help
Nick Patel

 
check out the link to the AS/400 knowledge base:
Most printers are HP compatible. However, you can use WSCST to setup commands specific to your printer. The HPT (host print transform) articles will help you with using WSCST.

You may want to take a look at:

If you have a cannon printer look here:


good luck

mike
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top