I am trying to print a spool file from my iSeries (820, V5R2) to an HP5SI network printer. If I create a printer...
device (CRTDEVPRT) to use type as *IPDS and Model 0, (in order to support AFP for future a purpose) the spool file (SCS) fails to print. The writer fails with the error message, "PQT3625, Reason code 22" stating that the connection could not be established with the printer at the specified IP and port. The spool remains in a pending state.
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
Dig Deeper on Past Releases
Related Q&A from Ken Graap
The BRMS Network feature allows a BRMS system to connect to other BRMS systems via a network, and enables a user to consolidate media such as backup ... Continue Reading
The only option to correct damage preventing file journaling is to use the RCLSTG command. Continue Reading
IBM's iSeries Backup and Recovery manual answers many questions related to system backup and disaster recovery. Continue Reading
Have a question for an expert?
Please add a title for your question
Get answers from a TechTarget expert on whatever's puzzling you.