Printer Configuration – Interactive job spool in AS/400 with LAN connected printer

670 pts.
Tags:
AS/400
AS/400 Spool Files
LAN
Requirement - To send the printer file generated in Spool into LAN connected printer directly. I have created a new DEVD and OUTQ for connecting printer (which is connected with my PC via LAN). I'm worried that I have missed something during setup. Please anyone advice on this.
CRTDEVPRT DEVD(newQ) DEVCLS(*LAN) TYPE(3812) MODEL(1) LANATTACH(*IP) AFP(*N)
PORT(9100) ONLINE(*NO) FONT(11) FORMFEED(*AUTOCUT) PARITY(*NONE)
STOPBITS(1) TRANSFORM(*YES) MFRTYPMDL(*CANLIPS3) RMTLOCNAME('192.168.XX.YY')
USRDFNOPT(*IBMSHRCNN *IBMSNMPDR) SYSDRVPGM(*IBMSNMPDRV)
1. IP of printer
2. Create Out queue
CRTOUTQ OUTQ(QGPL/newQ) RMTSYS(*INTNETADR) RMTPRTQ('E940') CNNTYPE(*IP) AUTOSTRWTR(1)
TRANSFORM(*YES) DESTTYPE(*OTHER) WSCST(*NONE)
MFRTYPMDL(*CANLIPS3) INTNETADR('192.168.XX.YY') DESTOPT('XAIX' 'XAUTOQ')
When I print object source via PDM, spool file is directly sent to Printer
3. NETSTAT --> option 3 shows the state as "Time-wait"
4. Canon Printer 5. IBM Personal communcations
1

Answer Wiki

Thanks. We'll let you know when a new response is added.

This is the setup for an existing printer at our site:

CRTDEVPRT DEVD(PRINTER)      
          DEVCLS(*LAN)       
          TYPE(3812)         
          MODEL(1)           
          LANATTACH(*IP)     
          AFP(*N)            
          PORT(9100)         
          ATTACH(*DIRECT)    
          ONLINE(*YES)       
          FONT(011 *NONE)    
          FORMFEED(*AUTOCUT) 
          SEPDRAWER(*FILE)   
          PRTERRMSG(*INFO)   
          MSGQ(*CTLD)        
          ACTTMR(170)        
          INACTTMR(*SEC15)   
          LINESPEED(19200)                         
          WORDLEN(8)                               
          PARITY(*NONE)                            
          STOPBITS(1)                              
          TRANSFORM(*YES)                          
          MFRTYPMDL(*HP4000)                       
          PPRSRC1(*LETTER)                         
          PPRSRC2(*LETTER)                         
          ENVELOPE(*NUMBER10)                      
          ASCII899(*NO)                            
          IMGCFG(*NONE)                            
          CHRID(*SYSVAL)                           
          RMTLOCNAME('nnn.nnn.nnn.nnn')              
          SYSDRVPGM(*HPPJLDRV)                     
          PUBLISHINF(*UNKNOWN *UNKNOWN *UNKNOWN *  
                     UNKNOWN *BLANK *UNKNOWN)    
          TEXT('HP LJ 600 M602')   
In my experience I've found the system will create an output queue to accompany the printer with no additional effort on my part.
If you don't have it, here's the link to IBM's Information on Printers from Various Manufacturers.  I've found it useful on occasion.

Discuss This Question: 2  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.
  • WoodEngineer
    We use a command and command processing program which executes the following two commands to add a network printer using its TCP/IP address.  As you can see, some of the values are passed from the command and others are specified at run-time by command prompting.

    We have created many print queues for a variety of printer using this technique.  Unless your printer is very basic, this will work.

    However, this will probably not work with a printer attached to your PC.  For that I recommend creating a print session on the PC to which the printer is attached.  When the PC's printer session is active output can be sent to your PC-attached printer just like any other printer.

    ADDTCPHTE INTNETADR(&IPADDR) +                
                 HOSTNAME((&OUTQ)) TEXT(&TEXT)               
                                                             
    CRTOUTQ    OUTQ(&OUTQLIB/&OUTQ) RMTSYS(&OUTQ) +                    ??RMTPRTQ(&OUTQ) AUTOSTRWTR(1) +            
                 CNNTYPE(*IP) DESTTYPE(*OTHER) +             
                 TRANSFORM(*YES) ??MFRTYPMDL(&TYPMDL) +      
                                           DESTOPT('XAIX') + 
                 SEPPAGE(*NO) ??TEXT(&TEXT) DSPDTA(*YES) +   
                 JOBSEP(00) /* DestOpt('XAIX') allows +      
                 printing of multiple copies.  */            
    8,225 pointsBadges:
    report
  • TheRealRaven
    Since your configuration apparently works (i.e., "When I print object source via PDM, spool file is directly sent to Printer"), why would you think anything is missing? Does it do what you want and need? If it does, then nothing is missing. The configuration source isn't helpful when there's no known problem.
    35,090 pointsBadges:
    report

Forgot Password

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

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

Thanks! We'll email you when relevant content is added and updated.

Following

Share this item with your network: