ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

Printing From As4001 To As4002

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Printing From As4001 To As4002

    Hi, I´m trying to share a printer from one as400 to another as400 , the printer don´t have I.P. address, how do that???

    thanks!!

  • #2
    Re: Printing From As4001 To As4002

    Look at this document

    All my answers were extracted from the "Big Dummy's Guide to the As400"
    and I take no responsibility for any of them.

    www.code400.com

    Comment


    • #3
      Re: Printing From As4001 To As4002

      Hi.
      You could try creating printer on AS/400(1). And next try to create this same printer on second AS/400(2) but in OUTQ of this printer like Remote system parameter write AS/400(1) and like Remote printer queue parameter write
      QUSRSYS/name_of_this_printer_from AS/400(1).
      This way you will have physical printer on AS/400(1) and remote printer on AS/400(2).
      Remember from AS/400(2) you should start this printer STRRMTWTR not STRPRTWTR. STRPRTWTR you will start this printer on AS/400(1). If this is not clear let me know I'll try to explain it more clearly.

      Comment


      • #4
        Re: Printing From As4001 To As4002

        I guess my link was a bit off subject.. found thios though.===>

        Code:
        There are at least a couple of different ways to print using LPR from the 
        iSeries/AS400. One of them is the Send TCP Spooled File (SNDTCPSPLF) command. 
        This command is somewhat inconvenient, however, because you have to type in 
        the spooled file identification information. Using this command, there is no way to
         browse a spooled file and send it to an LPD system.
        
        A more convenient alternative is to create an OUTQ to automatically print to your
         TCP/IP printer. This is a fairly straightforward process, detailed in the steps
         below. However, if you want your users to be able to assign output to a printer
         when they are using the *BASIC assistance level, you have to fake the iSeries
         into using the remote OUTQ. This process is also detailed in the steps below.
        
        
        1. To create an OUTQ that uses LPR to print through TCP/IP, follow these steps:
        
        
        Create a remote OUTQ with the CRTOUTQ command. The command syntax is this:
        
        
        crtoutq outq(QUSRSYS/TCPTEST) rmtsys(*INTNETADR)
        rmtprtq('DeskJet') cnntype(*IP) desttype(*OTHER)
        mfrtypndl(*HP560C) intnetadr('201.210.30.30')
        
        Notice that the output queue is created in QUSRSYS. This is to help us trick the
         iSeries into allowing users to specify the printer when using the basic assistance
         level. See the steps below for more information. The RMTSYS parameter is set to
         *INTNETADR, which allows us to specify the IP address of the LPD printer queue.
         The RMT-PRTQ parameter tells the iSeries which LPD queue to use. I'm sending
         this to a Windows NT LPD setup, so the queue name has to match the actual
         name of the printer on the Windows NT system (not the share name). The
         DESTTYPE parameter of *OTHER tells the iSeries to run the HPT function and
         translate all output to the printer type specified by the MFRTYPMDL parameter. In
         this case, the target printer is an HP693C, and the HP560C is the closest thing to
         it on the list. The INTNETADR parameter contains the IP address of the NT
         machine.
        
        
        2. Start the remote writer. The command syntax is as follows:
        
        
        strrmtwtr outq(QUSRSYS/TCPTEST)
        
        
        This will, of course, start the remote writer. Now, anything you send to this OUTQ
         will print on the DeskJet hanging off of the NT machine.
        
        
        That's all there is to it if everyone in your organization uses the *INTERMEDIATE
         assistance level. Assigning output to a remote OUTQ using the *BASIC
         assistance level is not directly supported, but you can fool the iSeries into making
         it work. To do this, you create a virtual printer device with the same name as the
         OUTQ and never vary on it. The device description sits on out there, not doing
         anything other than fooling the iSeries. When output is assigned to the printer
         using the *BASIC assistance level, the iSeries sees the existing fake printer and
         uses the remote OUTQ in QUSRSYS with the same name. Pretty tricky, eh?
        
        
        To do this, continue with the following step.
        
        
        3. Create a virtual 3812 printer device with the Create Device Printer
         (CRTDEVPRT) command.
        
        
        crtdevprt devd(TCPTEST) devcls(*VRT) type(3812) model(1) online(*NO) font(011)
        
        
        Again, be sure that the DEVD parameter is the same name as your remote OUTQ.
         When you run the command, you'll be notified that the OUTQ already exists. This
         is exactly what we want.
        
        
        That's it! Your new TCP/IP printer should now function nearly identically to its
         iSeries brethren.
        All my answers were extracted from the "Big Dummy's Guide to the As400"
        and I take no responsibility for any of them.

        www.code400.com

        Comment


        • #5
          Re: Printing From As4001 To As4002

          Thanks For Your Help

          Comment


          • #6
            Re: Printing From As4001 To As4002

            Originally posted by fraydey
            Hi.
            You could try creating printer on AS/400(1). And next try to create this same printer on second AS/400(2) but in OUTQ of this printer like Remote system parameter write AS/400(1) and like Remote printer queue parameter write
            QUSRSYS/name_of_this_printer_from AS/400(1).
            This way you will have physical printer on AS/400(1) and remote printer on AS/400(2).
            Remember from AS/400(2) you should start this printer STRRMTWTR not STRPRTWTR. STRPRTWTR you will start this printer on AS/400(1). If this is not clear let me know I'll try to explain it more clearly.

            PLEASE TRY TO EXPLAIN ME MORE k:

            Comment


            • #7
              Re: Printing From As4001 To As4002

              Sorry for long period of time. But I wasn't on line.

              I try to explain it more clearly.

              One way:
              1) Make PRTDEVADR. For sure and eventually for correct the printer address.
              2) Simplest way is turn on (on AS/400(1)) auto configuration. Auto configuration will create new printer. BE CAREFULL, IF YOU HAVE MORE THAN ONE PRINTER CONNECTED AND NOT CONFIGURED THAN AS/400 WILL CREATE ALL OF THOSE DEVICES.
              (You can use existing printer description and try to do CRTDEVPRT (copy printer description from other printer) - remember to change port number and switch setting parameters, and description).
              3) Check the address and printer connection. Should be ok.
              4) Next step. Create this printer on AS/400(2). (When you create DEVPRT on AS/400 OUTQ for this DEVPRT is creating automatically).
              5) On AS/400(2), Inside OUTQ (this printer OUTQ), change parameters:
              Remote system . . . . . . . . . 'Sxxxxxxx' (remote system you have to write AS/400(1) address.
              Remote printer queue . . . . . . 'QUSRSYS/name of this printer from AS/400(1) system' (for example if you named this printer on AS/400(1) system PRT10 on this OUTQ you have to write - Remote printer queue . . . . . . 'QUSRSYS/PRT10'
              Or on the AS/400(2) you can try create remote OUTQ, without create device (on AS/400(2)) - (Jaimief just explained it to you one post before.). But with this OUTQ try to do point 5) from my post.

              I think this is simplest way.

              Comment


              • #8
                Re: Printing From As4001 To As4002

                thanks, it's more clear now jeje.

                Comment

                Working...
                X