Configuring PJL printers

To set up Hewlett Packard print job language (PJL) printers, follow these steps.

  1. Ensure that you have met the following requirements:
    • The printer must support Hewlett Packard print job language (PJL) protocol. For a list of printers that are known to support PJL, see the IBM® Software Knowledge Base document Information on Printers from Various ManufacturersLink outside Information Center (search for the document title at www.ibm.com/support/).
    • If the printer is attached to a network adapter, the network adapter must be compatible with the printer. The network adapter must provide bidirectional communication with the printer, and all PJL commands must pass to and from the printer unmodified.
    • If the printer is attached to an external network adapter, the printer must be connected with an IEEE 1284 bidirectional printer cable and the print server must be in the BITRONICS, BI-DIRECTIONAL or ECP/MLC mode.
  2. Use the Create Device Description (Printer) (CRTDEVPRT) CL command to create a printer device description. From a character-based interface, type CRTDEVPRT.
  3. On the Create Device Description (Printer) Display, press F9 to display all parameters.
  4. Specify the following values.
    Parameter Value
    Device description (DEVD) The name of your device description; for example, mypjlprt.
    Device class (DEVCLS) This must be set to *LAN.
    Device type (TYPE) This must be set to 3812.
    Device model (MODEL) This must be set to 1.
    LAN attachment (LANATTACH) This must be set to *IP.
    Port number (PORT) The port number that the printer network interface card is expecting for PJL data. Refer to your manufacturer's information or to the IBM Software Knowledge Base document Recommended PJL Port Numbers Values for *LAN 3812 PJL Device DescriptionsLink outside Information Center (search for the document title at www.ibm.com/support/) for the correct value. Typically this value is 9100 or 2501.
    Font (FONT) This is typically set to 011, which is the default 10 CPI font.
    Form feed (FORMFEED) Set to *AUTOCUT, if single-cut sheets are used by the printer. Set to *CONT, if printing to a continuous forms printer.
    Printer error message (PRTERRMSG) Set to *INFO so that the printer's message queue will receive informational messages whenever possible. This can prevent a condition that might cause the printer writer to end.
    Message queue (MSGQ) The default value for this parameter is *CTLD, which indicates that the message queue is 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 you want to use another message queue for this 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.
    Host print transform (TRANSFORM) Set to *YES so that SNA character string (SCS) and AFP data stream spooled files are converted to the printer's data stream.
    Manufacturer type and model (MFRTYPMDL) This value indicates the type of ASCII printer and is used by the host print transform when converting spooled files. For recommendations on the value to use for some popular printers, see the IBM Software Knowledge Base document Information on Printers from Various ManufacturersLink outside Information Center (search for the document title at www.ibm.com/support/).
    Remote location (RMTLOCNAME) The name of your printer on the TCP/IP network; for example, 192.168.0.1 or mysnmpprt.myco.com. You should verify that the system can reach the printer by using either the ping or Verify TCP/IP Connection (VFYTCPCNN) command.
    System driver program (SYSDRVPGM) This must be set to *IBMPJLDRV.
    All other values can be left as the default value.
  5. Press Enter.
  6. Make the printer available.
  7. Start the printer writer.