Q
Problem solve Get help with specific problems with your technologies, process and projects.

Creating a remote output printing queue from the AS/400

A simple series of commands in AS/400 can automatically have a remote printer print every spool file released into the output queue.

I am a really newbie in RPG programming and also networking. Right now I am working with an AS/400 program.

Currently we are using third-party software to read the AS/400 spool and distribute it to a different network printer in a different department. Because of the instability of the software, the manager decided to try to recreate the code to make it an in-house product that can easily be maintained.

Can you guide me through the process on how to create it? (We are using Exchange Server 5.5, Exchange 2000, Outlook 2000 & 1998).

I did not fully understand what the software package is doing. AS/400 spool files can be distributed to network printers with no need for a package.

For example

  • Your printer is hp
  • The printer network card address is 10.10.10.10

The following command will create remote output queue for this printer:
CRTOUTQ OUTQ(Myqueue)
RMTSYS(*INTNETADR)
RMTPRTQ('LPT1_PASSTHRU')
AUTOSTRWTR(1)
CNNTYPE(*IP)
DESTTYPE(*OTHER)
TRANSFORM(*YES)
MFRTYPMDL(*HP4)
INTNETADR(10.10.10.10)
SEPPAGE(*NO)

From now on every spool file released into the outq MyQueue will be printed automatically in the network printer 10.10.10.10.

Dig Deeper on Printing on iSeries

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.

-ADS BY GOOGLE

SearchDataCenter

Close