IBM Support

Page Range to Print (PAGERANGE) Parameter is being Ignored by RMTOUTQs

Troubleshooting


Problem

This document discusses an issue where the Page range to print (PAGERANGE) parameter, specified in the attributes of a spooled file, is set to print only certain pages yet the entire spooled file is printed by the remote writer.

Resolving The Problem

Remote Output Queues (RMTOUTQs) do not support the Page range to print (PAGERANGE) parameter in a spooled file. However, there are a few options available to get page range support for your printer.
  • One option is to switch from using a Remote Output Queue (RMTOUTQ) to using a *LAN 3812 printer device description.

    For more information, you should refer to the section titled Switching to Use a *LAN 3812 Printer Device Description below.
     
  • Another option is to use the Remote Writer Page Range (TSPRWPR) exit program or utility with your existing RMTOUTQ. The TSPRWPR exit program is an unsupported utility that provides page range support when using a Remote Output Queue (RMTOUTQ) when printing to a LAN attached printer using TCP/IP.

    For more information, you should refer to the following document:
    TSPRWPR Remote Writer Page Range Support Exit Program
     
  • Yet another option would be to setup to print to the network printer on a Windows PC or Windows Server, then configure a PC5250 or TN5250e printer session to print from the IBM i system, through the Windows print queue, and then to the network printer.

    For information on configuring a PC5250 printer session using IBM i Access for Windows, you should refer to the following document:
    IBM i Access for Windows: Configuring a PC5250 Printer Session
Note: For more information on this and other limitations of printing through a RMTOUTQ, you should refer to the Capabilities and Limitations of Remote Output Queues (RMTOUTQs) document.

Switching to Use a *LAN 3812 Printer Device Description

Many of the limitations listed above can be addressed by switching from using a remote writer, which is the type of writer started for Remote Output Queues (RMTOUTQs), to using a printer writer instead, which is type of writer started for *LAN 3812 printer device descriptions and PC5250 printer sessions. Specifically, the limitations addressed by switching to use a *LAN 3812 device description or a PC5250 printer session include page range support, printing multiple copies, receiving message CPA3394 - Load form type '&4' device &5 writer &1, receiving message CPA4002 - Verify alignment on printer &3 (when printing to a continuous form printer), printing file separators or job separators, starting a writer by using the Work with Writers (WRKWTR) command and taking Option 1 (Start) next to the writer name, and managing the writer and spooled files from iSeries Navigator.

There are limitations to printing through a *LAN 3812 device description or a PC5250 printer session, though there are fewer limitations than with RMTOUTQs. For more information, refer to the following Rochester Support Center knowledgebase documents:


Base document contains links to several other documents. Each of the documents listed contain information on printers from one of various manufacturers, and provides information about the printer data streams supported by each printer, whether the printer is a Microsoft Windows Only printer, whether the printer will work with and how it will work with Personal Communications 5250 (PC5250), Host Print Transform (HPT), Remote Output Queues, *LAN 3812 PJL device descriptions, *LAN 3812 SNMP device descriptions, and *LAN 3812 IPP device descriptions.
For information refer to the following:


Switching to use a *LAN 3812 PJL, SNMP, or IPP device description requires support for the HP PJL (Printer Job Language), SNMP (Simple Network Management Protocol), or IPP (Internet Print Protocol) in the printer hardware, as well as in the internal network interface card (NIC) or external print server used with that printer. For more information, refer to the following documents:


If it looks like the printer, network interface card (NIC) or print server do not support PJL, SNMP or IPP, or if unable to get a *LAN 3812 PJL, SNMP, or IPP device description to successfully print to the printer, then another option would be to switch to using a *LAN 3812 device description that uses the unsupported LPR Print Driver (TSPLPRD) utility. For more information, refer to the document:


You could also configure a PC5250 printer session on a Windows PC that is able to print to the printer and that has Access Client Solutions (ACS). However, the Windows PC would need to be powered on and the PC5250 printer session would need to started in order to print. When printing to a LAN attached printer, it is generally better to use a *LAN 3812 device description that uses the unsupported LPR Print Driver (TSPLPRD) utility, particularly when you already know that you are able to print to the printer using LPR/LPD by use of a RMTOUTQ. However, for step-by-step instructions on configuring a PC5250 printer session, refer to the following document:

[{"Type":"MASTER","Line of Business":{"code":"LOB68","label":"Power HW"},"Business Unit":{"code":"BU070","label":"IBM Infrastructure"},"Product":{"code":"SWG60","label":"IBM i"},"ARM Category":[{"code":"a8m0z0000000CJHAA2","label":"Print-\u003EPrinter Configurations-\u003ERemote Output Queue"}],"ARM Case Number":"","Platform":[{"code":"PF012","label":"IBM i"}],"Version":"All Versions"}]

Document Information

Modified date:
05 June 2024

UID

nas8N1012142