I am trying to print a spool file from my iSeries (820, V5R2) to an HP5SI network printer. If I create a printer...
By submitting your email address, you agree to receive emails regarding relevant topic offers from TechTarget and its partners. You can withdraw your consent at any time. Contact TechTarget at 275 Grove Street, Newton, MA.
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
Find out if log files can be omitted during a save without causing problems in a full restore.continue reading
IBM's iSeries Backup and Recovery manual answers many questions related to system backup and disaster recovery.continue reading
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
Have a question for an expert?
Please add a title for your question
Get answers from a TechTarget expert on whatever's puzzling you.