Skip to main content

IBM Software Technical Document

_______________________________________________________________
Hide details for       Document Information Document Information

Document Number:8695149
Functional Area: Print
Subfunctional Area: Network Print from iSeries
Sub-Subfunctional Area: *LAN 3812 PJL Device Descriptions
OS/400 Release:V5R2M0; V5R3M0; V5R4M0; V6R1M0
Product: I5/OS (5761SS100)
I5/OS PRINT/SPOOL (5761SS1SP)
OS/400 BASE (5722SS100)
OS/400 PRINT/SPOOL (5722SS1SP)
TCP/IP CON UTIL (5722TC100)
TCP/IP CONNECTIVITY UTIL I5OS (5761TC100)
Product Release:N/A


_______________________________________________________________

Document Title
Configuring a *LAN 3812 PJL Device Description

Document Description
Note: This document was previously entitled, *LAN TCP/IP ASCII Printer Support.

This document contains information on configuring *LAN 3812 PJL device descriptions for LAN attached ASCII printers. The term PJL refers to HP's Printer Job Language. PJL allows for two-way communications with the printer when attached to the LAN using a print server that also supports bidirectional PJL. Support for the PJL print driver is available in the base code for the R410 operating system and above, and was added to the R370 operating system through PTFs. This is an alternative to using Remote Output Queues (RMTOUTQs). *LAN 3812 PJL device descriptions fully support the page range function.

Support for the PJL print driver is largely dependent on the internal network interface card (NIC) or external print server used with the printer. Therefore, this column is as much of a statement about the NIC card or print server typically shipped with the printer, than it is about the printer itself. If it is unclear whether the network interface card (NIC) or print server and/or printer supports PJL, contact the manufacturer.

This document was last updated on 10/01/2008.

Show details for Hardware Requirements for *LAN 3812 PJL Device DescriptionsHardware Requirements for *LAN 3812 PJL Device Descriptions
Show details for Required PTF LevelsRequired PTF Levels
Hide details for Configuration InstructionsConfiguration Instructions
Configuration Instructions

To take advantage of this new function, the printer connected using this print driver must have a dedicated port that accepts HP PJL commands.

To configure such devices, use the CRTDEVPRT command. Specify the following parameters:

Device Class (DEVCLS)
This needs to be set to *LAN.

Device Type (TYPE)
This needs to be set to 3812.

Device Model (MODEL)
This needs to be set to 1.

LAN Attachment (LANATTACH)
This needs to be set to *IP.

Port number (PORT)
This specifies the port number that the LAN-attached printer or LAN print server is expecting for PJL (or Reverse TELNET) data. The port number is hardware specific, but is typically set to one of the following:
o9100 for HP LaserJets, Lexmark Optras, and IBM/Lexmark 4039s and 4049s.
o9100, 9101 or 9102 for HP LaserJet or compatible printers that are connected to an external HP JetDirect print server (9100 is for parallel port 1, 9101 is for parallel port 2 and 9102 is for parallel port 3).
o2501 for IBM Network Printer 12, 17 and 24 (4312, 4317 and 4324) and IBM Infoprint 20, 32 and 40 (4320, 4232 and 4340).
For a complete list of known PJL port number and system driver program values, refer to the following Rochester Support Center knowledgebase document:

12454128, Recommended PJL Port Number Values for *LAN 3812 PJL Device Descriptions Database 'AS400 Support Line KnowledgeBase', View 'All Documents', Document 'Recommended PCL/PJL Port Number Values for *LAN TCP/IP ASCII Printer Support'

If this document does not list a PJL port number value for your printer hardware, consult the manufacturer of your printer and/or print server to determine if they have a dedicated port that accepts HP PJL commands. If they provide you with a PJL port number value that works, contact the Rochester Support Center at 1-800-IBM-SERV so this information can be added to document 12454128.

Font (FONT) = 011
This is typically set to 011, which is the default 10 CPI font. A font ID is required to create the device description. Unless special requirement in your operation dictate something different, this should suffice.

Form Feed (FORMFEED)
This defaults to *TYPE, but should be set to *AUTOCUT to indicate that the printer automatically feeds cut sheet paper. Leaving this set at *TYPE or setting it to *CONT or *CUT can cause problems with both drawer selection and paper size.

Printer Error Message (PRTERRMSG)
This defaults to *INQ. For the R410 operating system and above, this should be set to *INFO so the printer's message queue will receive informational messages whenever possible. If this is set to *INQ and a problem occurs on the printer (for example, out of forms or a paper jam) a message will be sent to the printer's message queue that must be answered before printing can continue. Often, this can also cause the writer to end while in the middle of a spooled file.

Message queue (MSGQ)
This defaults to *CTLD, which indicates the message queue defined in the attached controller. There is no attached controller for *LAN printer device descriptions, so leaving the Message queue (MSGQ) parameter set to *CTLD will in effect set it to the QSYSOPR message queue in library QSYS. If another message queue is to be used for this particular printer device, verify that the message queue exists before entering the message queue and library in the MSGQ parameter. Otherwise, the CRTDEVPRT command will fail with message CPF2799 - Message queue &1 in library &2 not found.

Activation Timer (ACTTMR)
This defaults to 170 (seconds) but can be set to any value from 1 to 2550 seconds (or 42.5 minutes). The activation timer refers to the amount of time to wait for the LAN-attached printer device to respond. The printer device is considered not available, and an error message is posted if there is no connection before this timer expires.

Inactivity Timer (INACTTMR)
This defaults to *ATTACH, but can be set to any value from 1 to 30 (minutes), as well as *SEC15 (15 seconds), *SEC30 (30 seconds) or *NOMAX (no maximum). This value determines when the print driver closes the connection to the printer (freeing it up to received spooled output from another source) once there are no operating system spooled files left in RDY (ready) status. It is recommended that this be set to *SEC15 so the operating system will free up the printer 15 seconds after all RDY spooled files have been processed. Setting it to *NOMAX will cause the operating system to maintain the connection until the writer is ended so the printer device will not be shared with other systems. For *LAN printer device descriptions, *ATTACH maps to the recommended value of *SEC15.

Host Print Transform (TRANSFORM)
This needs to be set to *YES so the Host Print Transform (HPT) function on the operating system will convert SCS and AFPDS spooled files to the printer's data stream.

Manufacturer Type and Model (MFRTYPMDL)
This indicates the type of ASCII printer being used. This value is used by HPT to determine what ASCII controls to use when converting the spooled file from SCS or AFPDS to ASCII. For recommendations on the value to use for certain known printers, please refer to the following document:

17690939, Information on Printers from Various Manufacturers: Database 'AS400 Support Line KnowledgeBase', View 'Personal Views\Documents Needing Your Attention', Document 'Support for Various Printers in Host Print Transform (HPT), PC5250, etc...'

Paper source 1 (PPRSRC1) and Paper source 2 (PPRSRC2)
These parameters indicate the paper size used in paper source 1 and paper source 2 in the printer hardware. The default value is *MFRTYPMDL, which indicates that the paper size will be determined based on the default paper size for the Manufacturer type and model (MFRTYPMDL) setting selected. Other choices for the PPRSRC1 and PPRSRC2 parameters include the following:

*LETTERLetter sized (8.5 x 11 inch) paper
*LEGALLegal sized (8.5 x 14 inch) paper
*LEDGERLedger sized (11 x 17 inch) paper
*EXECUTIVEExecutive sized (7.25 x 10.5 inch) paper
*A3A3 sized 297mm x 420mm (11.7 x 16.5 inch) paper
*A4A4 sized 210mm x 297mm (8.3 x 11.7 inch) paper
*A5A5 sized 148mm x 210mm (5.85 x 8.3 inch) paper
*B4B4 sized 250mm x 353mm(10.1 x 14.3 inch) paper
*B5B5 sized 176mm x 250mm (7.2 x 10.1 inch) paper
*CONT80Continuous form (8.0 inches)
*CONT132Continuous form (13.2 inches)
*NONENo paper source specified

Note: *LAN 3812 PJL device descriptions typically are used only for cut-sheet feed printers, so *CONT80 and *CONT132 will rarely be specified for the PPRSRC1 or PPRSRC2 parameters when configuring a *LAN 3812 PJL device description.

Remote Location (RMTLOCNAME)
This should be set to the IP address of the printer, host name, or DNS name. If an IP address is used, it should be entered without leading zeros (for example, use 192.186.10.2 rather than 192.186.010.002). If an IP address is used, verify that the operating system can reach the printer by using either the PING or Verify TCP/IP Connection (VFYTCPCNN) command with that IP address. If a host name or DNS name is used, verify that operating system can reach the printer by using either the PING or Verify TCP/IP Connection (VFYTCPCNN) command with that host name or DNS name.

User-defined options (USRDFNOPT)
This defaults to *NONE. For R370 OS/400, the first User-Defined Options (USRDFNOPT) parameter should be set to ERRMSGINFO so the message queue for the printer will receive informational messages whenever possible. If this is not set and a problem occurs on the printer (for example, out of forms or a paper jam), a message will be sent to the message queue for the printer that must be answered before printing can continue. Often, this can also cause the writer to end while in the middle of a spooled file.

System Driver Program (SYSDRVPGM)
Specifies the name of a system-defined driver program, which provides the capability to send operating system printer output to a printer attached over a TCP/IP network. This should be set to either *IBMPJLDRV or *HPPJLDRV when configuring a *LAN 3812 PJL device description for a printer that is directly attached to the LAN.

Workstation Customizing Object (WSCST)
This is typically set to *NONE, but can be used to specify a modified Workstation Customizing Object (WSCST).

Text 'description' (TEXT)
Specifies the text that briefly describes the printer device description. This text can be seen when working with printer device descriptions when using the Work with Device Descriptions (WRKDEVD) command.

Note: All other parameters should be specified like any other printer.
Show details for Configuration ExampleConfiguration Example
Show details for Problem Areas for ConsiderationProblem Areas for Consideration
Show details for Configuring the Printer and Print Server HardwareConfiguring the Printer and Print Server Hardware



__________________________________________________________________
PMR Number:
Related APARs:
Related Public Documents:

    IBM disclaims all warranties, whether express or implied, including, but not limited to, the implied warranties of merchantability and fitness for a particular purpose. By furnishing this document, IBM grants no licenses to any related patents or copyrights. Copyright © 1996,1997,1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 IBM Corporation. Any trademarks and product or brand names referenced in this document are the property of their respective owners. Consult the Terms of use link for trademark information.