Midrange News for the IBM i Community


Posted by: Bob Cozzi
Rogue Programmer
Cozzi Productions, Inc.
Chicagoland
How to Create a Remote OutQ (output queue) over TCP/IP
has no ratings.
Published: 04 Jan 2012
Revised: 20 Jun 2015 - 3225 days ago
Last viewed on: 17 Apr 2024 (11602 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.

 

STRTCPSVR SERVER(*LPD)

 

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

CRTOUTQ OUTQ(QGPL/LOCALOUTQ) RMTSYS(MYRMTSYS) RMTPRTQ('QGPL/REALOUTQ')
  AUTOSTRWTR(1) CNNTYPE(*IP) TRANSFORM(*NO) SEPPAGE(*NO)      

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

COMMENTS

(Sign in to Post a Comment)
Posted by: bobcozzi
Site Admin ****
Chicagoland
Comment on: How to Create a Remote OutQ (output queue) over TCP/IP
Posted: 12 years 1 months 6 days 5 hours 7 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.