Home > Ask the AS/400 Experts > iSeries i5/OS and OS/400 Questions & Answers > Problems printing a spool file from the iSeries
Ask The iSeries 400 Expert: Questions & Answers
EMAIL THIS

Problems printing a spool file from the iSeries

Ken Graap EXPERT RESPONSE FROM: Ken Graap

Pose a Question
Other iSeries 400 Categories
Meet all iSeries 400 Experts
Become an Expert for this site


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


>
QUESTION POSED ON: 11 February 2004
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


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   



RELATED CONTENT
iSeries i5/OS and OS/400
Will overloaded discs impact iSeries performance?
Error CWBCO1049 on AS/400
Recovering from DST QSECOFR password disablement on V5R4
Enrolling a user profile in the i5/OS system distribution directory
How to resolve a CPI93B8 error message: LIC problem data has been logged for #MSTRTNS
Checking if a local port is used by another job on AS/400
Restricting specific user command line access
Print private authorities (PRTPVTAUT) command for user objects in a library with *public exclude
Getting modules to adopt authorities from the main program
Copying a physical file back to a spool file

Past Releases
iSeries i5/OS: Top 10 Q&As
iSeries i5/OS: Top 10 Q&As
Error message within the printer file
How often are message queues cleared?
Connect the dots: Get your iSeries servers talking to one another
Embedding SQL into RPG LE programs
In search of a table that shows system & O/S release compatibility
V5R3 view disk IOA cache battery expiration
New option within the WRKSYSACT command
See the users with *change or *all authority

Upgrading
Learn the i: iSeries DevCon coming up in Orlando
System i blades not selling yet, it seems
ISV lures art company away from HP to iSeries
iSeries i5/OS: Top 10 Q&As
iSeries i5/OS: Top 10 Q&As
IBM cuts prices for System i Enterprise, HA servers
Readers respond to pending V5R4 release
SAP-friendly iSeries lowers ERP barriers
In search of a table that shows system & O/S release compatibility
New option within the WRKSYSACT command

RELATED GLOSSARY TERMS
Terms from Whatis.com − the technology online dictionary
AS/400  (Search400.com)
i5/OS  (Search400.com)
iSeries  (Search400.com)
OS/400  (Search400.com)

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary



Search and Browse the Expert Answer Center
Search and browse more than 25,000 question and answer pairs from more than 250 TechTarget industry experts.
Browse our Expert Advice



iSeries Networking - Printing, Remote Access, TCP/IP
HomeNewsTopicsITKnowledge ExchangeTipsBlogsAsk the ExpertsMultimediaWhite PapersProducts
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Site Map




All Rights Reserved, Copyright 1999 - 2009, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts