One of the things people always ask me about is how to do page range printing when using Line Printer Requester (LPR) on their AS/400s. In this article, I’ll discuss some Web sites you can visit for information on providing this functionality.
To get started, go to IBM’s Technical Support Web site at www.as400service.ibm.com. Click on the Tech Info & Databases/Software Knowledge Base, then click on Print. Collapse the options tree to find the Network Attached Printers option. Click on Network Attached Printers/Remote Output Queues (RMTOUTQs).
Read article 14143423, “Capabilities and Limitations of TCP/IP Remote Output Queues.” You will find an entry in the limitation section specifying that there is no AS/400 page range support for using TCP/IP Remote Output Queues to print to a LAN-attached printer. This limitation exists because LPR client transmissions include a Control File with print formatting information as well as a Data File with the actual information to be printed. If a receiving device running an LPD server chooses to ignore the information in the control file, job control is effectively lost. This is why AS/400 LPR cannot guarantee that page range support will work on any given printer.
To get around this limitation, three options exist:
• Download the Spool File Tools (SPLTOOL) v6.13 program from www.bvstools.com. This shareware program from Bradley V. Stone supports OS/400 V3R2M0 and above. SPLTOOL allows the printing of page ranges to a TCP/IP printer. It
also allows you to download AS/400 spool files to a PC document and it allows you to send an AS/400 spool file via FTP.
• IBM’s TSPRWPR Writer Transform Exit Program—On the IBM Technical Support Web site, go to the Network Attached Printers/Remote Output Queues (RMTOUTQ) articles as described above. Read article 12594243, “Page Range Support on Remote Output Queue (LPR).” This document contains instructions for creating and assigning the TSPRWPR exit program to an output queue so that you can print a specific page range using LPR or the Send TCP Spool File (SNDTCPSPLF) command. This QUSRTOOL exit program was created by IBM and has been available since V4R2. The tool can also be compiled and ported back to V4R1 and V3R7. The only warning here is that IBM supplies this tool as is without any support so, if you run into problems, IBM will not be able to help you.
• LAN Device Description—On the IBM Technical Support Web site, go to the Software Knowledge Base again and choose Print. There are some documents that describe the LAN device description parameters in the Network Attached Printers-*LAN Device Descriptions area. You may want to read article 14461435, “LAN PJLTCP/IP Device
Description Configuration Settings.” This device description has been available since V3R7. It uses PJL commands to support LPR page ranges on HP-PCL compatible laser
printers. The application is a TCP socket application that writes printer output to a target TCP port on the print server that is handling the target printer.
LATEST COMMENTS
MC Press Online