Midrange News for the IBM i Community

Posted by: Bob Cozzi
Rogue Programmer
Cozzi Productions, Inc.
How to Create a Remote OutQ (output queue) over TCP/IP
has no ratings.
Published: 04 Jan 2012
Revised: 20 Jun 2015 - 3173 days ago
Last viewed on: 25 Feb 2024 (11485 views) 

Using IBM i? Need to create Excel, CSV, HTML, JSON, PDF, SPOOL reports? Learn more about the fastest and least expensive tool for the job: SQL iQuery.

Setup a Remote OUTQ Published by: Bob Cozzi on 04 Jan 2012 view comments(1)

This document describes the basics on how to create a Remote OUTQ (output queue) on the IBM i5 and "i" operating systems.

Assuming you have the TCP/IP HOSTS Table set up, you can use alias names instead of IP addresses when creating a remote output queue. If you do NOT have the HOSTS Table set up, then a proper IP address would be required.

Remember to start the LPD server on your system or you won't be able to receive spool files from remote systems. They'll just sit there in the "SND" state indefinitely with no apparent errors, except of course that they don't get sent.




To create a simple, straight-forward remote output queue (OUTQ) to another IBM i system, the following command may be used:


The OUTQ parameter contains the name of the local output queue being created.

The RMTSYS parameter contains the IP or HOSTS Table name of the remote system/location.

The RMTPRTQ parameter contains a CL-style qualified name. This is a real output queue that exists on the remote system. It is NOT case-sensitive, however IBM recommends that the qualified outq name should be specified in all uppercase.

AUTSTRWTR(1) indicates that the writer should be started. if the writer is not started, the spooled data will remain on the local system and is not sent to the remote system until a STRRMTWTR command is issued.

The CNNTYPE(*IP) is used when you are using a TCP/IP network vs IBM's SNA networking.

TRANFORM(*NO) means you are sending this to a non-ASCII printer. *NO is normally required for IBM i to IBM i systems. If you forget this parameter, your remote spool files will look interesting.

SEPPAGE(*NO) means don't print a separator page. I think just about every output queue created since 1988 uses *NO for this parameter.

Return to midrangenews.com home page.
Sort Ascend | Descend


(Sign in to Post a Comment)
Posted by: bobcozzi
Site Admin ****
Comment on: How to Create a Remote OutQ (output queue) over TCP/IP
Posted: 11 years 11 months 15 days 22 hours 16 minutes ago

Just migrated a client to v7.1 on a new box and noticed the LPD server isn't/wasn't started. So that's when I "discovered" that STRTCPSRV SERVER(*LPD) is needed.