Ask the Expert

Problems printing a spool file from the iSeries

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.

              LANATTACH(*IP) AFP(*YES) PORT(5001) +         
              ONLINE(*YES) FONT(011) FORMFEED(*AUTOCUT) +   
              ACTTMR(170) RMTLOCNAME(&IPADD) +              
              USRDFNOBJ(QGPL/&PRT *PSFCFG) TEXT('IPDS +      
              Network Printer')              
              DEVRSCLIBL(*DFT) IPDSPASTHR(*YES) +           
              ACTRLSTMR(*NORDYF) RLSTMR(*SEC15) +           
              RESTRTMR(*IMMED) TEXT('IPDS Network Printer')  
 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.


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 Featured Topic: Top 10 expert tips for OS/400

This was first published in February 2004

There are Comments. Add yours.

TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to: