I am puzzled because the printer at the same IP and port prints the same spool file when the printer device is created using Type as 3812 and Model as 1 in CRTDEVPRT command. I have also tried to use the PSFCFG settings in USRDEFN options and have tried using different ports -- 0 and 9001. But still the problem persists. What's wrong?
I've always used Port 5001. You may want to compare the following commands with the ones you use:
&PRT = The device name you wish to use. &IPADD = The IP address of the printer hardware. CRTDEVPRT DEVD(&PRT) DEVCLS(*LAN) TYPE(*IPDS) MODEL(0) + LANATTACH(*IP) AFP(*YES) PORT(5001) + ONLINE(*YES) FONT(011) FORMFEED(*AUTOCUT) + ACTTMR(170) RMTLOCNAME(&IPADD) + USRDFNOBJ(QGPL/&PRT *PSFCFG) TEXT('IPDS + Network Printer') CRTPSFCFG PSFCFG(QGPL/&PRT) USRRSCLIBL(*JOBLIBL) + DEVRSCLIBL(*DFT) IPDSPASTHR(*YES) + ACTRLSTMR(*NORDYF) RLSTMR(*SEC15) + RESTRTMR(*IMMED) TEXT('IPDS Network Printer') GRTOBJAUT OBJ(*LIBL/&PRT) OBJTYPE(*OUTQ) USER(*PUBLIC) + AUT(*USE) CHGOUTQ OUTQ(&PRT) TEXT('IPDS Network Printer Output + Queue') DSPDTA(*YES) JOBSEP(1) + OPRCTL(*YES) AUTCHK(*DTAAUT)
Also, make sure that the printer hardware is configured to listen on Port 5001.
================================== MORE INFORMATION ON THIS TOPIC ==================================
The Best Web Links: tips, tutorials and more.
Ask your OS/400 questions -- or help out your peers by answering them -- in our live OS/400 discussion forums.
Ask the Experts yourself: Our OS/400 gurus are waiting to answer your questions.
Check out this Search400.com Featured Topic: Top 10 expert tips for OS/400
This was first published in February 2004