Difference between revisions of "Setting up a printer"

From MidrangeWiki
Jump to: navigation, search
m (AFPDS was called a subset of IPDS instead of the other way around.)
(Limitations: added AFPRSC)
Line 44: Line 44:
  
 
===== Limitations =====
 
===== Limitations =====
HPT doesn't support all of the *AFPDS functionality.  Some limitations include [http://publib-b.boulder.ibm.com/abstracts/sg242160.html?Open]:
+
HPT doesn't support all of the *AFPDS functionality.  Some limitations include [http://publib-b.boulder.ibm.com/abstracts/sg242160.html?Open]: [http://www-912.ibm.com/n_dir/nas4apar.nsf/c79815e083182fec862564c00079d117/65611dda1e4a84ca86256d08006bc80d]:
  
 
*Dot matrix ASCII printers are not supported. Since these printers do not
 
*Dot matrix ASCII printers are not supported. Since these printers do not
Line 57: Line 57:
 
*The transform does not support color barcodes.
 
*The transform does not support color barcodes.
 
*At this time, the transform can only produce 240 or 300 dpi images.
 
*At this time, the transform can only produce 240 or 300 dpi images.
 +
*Use of the AFPRSC keyword in DDS
  
 
===== Barcodes =====
 
===== Barcodes =====

Revision as of 16:10, 16 March 2012


Start Here

So you need to set up a printer?

Basically, you've got three choices:

  • A TCP/IP network attached printer
  • A 5250 workstation 5250 attached printer
  • A twinax attached printer

The place to start is this IBM technical document #22393632 - Options to Configure a Printer on an IBM System i

Disregarding the twinax option as it's unlikely to be used for a new printer, the above document lays out 4 options for printing to a TCP/IP network attached printer.

  • A *LAN *IPDS device description
  • A *LAN 3812 SNMP device description
  • A *LAN 3812 IPP device description
  • A *LAN 3812 PJL device description
  • A Remote Output Queue (RMTOUTQ) (also known as LPD/[LPR]]

The list above as been reordered from the list shown in the IBM document based upon order of preference. A *LAN *IPDS device is the most preferred option for an IBM System i network printer; while a Remote Output Queue is the least preferred. The relative preference of SNMP, IPP, and PJL are subjective and based upon the SNMP vs IPP thread in the comp.sys.ibm.as400.misc newsgroup.

The IBM technical document includes links to detailed instructions for setting up each of the above options along with links to lists that tell you which option is supported for various printers from most manufactures.

IPDS Printers

Note: You can't define a *LAN *IPDS device description unless the printer actually supports *IPDS

For the most part, printers that support IPDS are available under the IBM/InfoPrint/Ricoh brand name. However, you can find other few other business printer manufactures that offer IPDS support and a few third parties that make IPDS personality chips for non IBM/InfoPrint/Ricoh printers; primarily for HP printers as HP doesn't offer native IPDS support in any of its products.

Lexmark manufactured earlier models of InfoPrint printers and as such also offers good IPDS modules for it's T-Series of printers.

Depending on the IPDS module you're using, you will need to be using either Port 5001, 9100 or 9600.

Additionally, a *LAN *IPDS device description requires that the "Print Services Facility/400" (PSF/400)license program be installed. PSF/400 is a chargeable optional component of the OS.

As an alternative to IPDS modules, there's also IPDS-to-PCL software solutions out there. Most of them run under Windows.

ASCII Printers

When printing to an ASCII printer (known to the rest of the world as "PCL printers"), configured as a *LAN 3812 SNMP/IPP/PJL device description or via a remote output queue, a component of the OS known as "Host Print Transform" (HPT) is responsible for converting the native EBCDIC data into ASCII that the printer can understand. HPT is built into the OS and is always available.

Host Print Transform

HPT can transform spool files with a printer device type (DEVTYPE) of *SCS or *AFPDS. However, it can not transform spool files of type *IPDS. This is not usually a problem as you can usually change the printer file from DEVTYPE(*IPDS) to DEVTYPE(*AFPDS) without ill effect. The functionality available in a *IPDS printer file is a subset of the functionality available to an *AFPDS printer file.

Limitations

HPT doesn't support all of the *AFPDS functionality. Some limitations include [1]: [2]:

  • Dot matrix ASCII printers are not supported. Since these printers do not

support absolute movement, even text does not print correctly. Text prints as one long string.

  • The transform does not support AFP graphics (GOCA) commands. For

example, pie charts generated by BGU or GDF files imbedded in the spooled file will not print.

  • The transform ignores the fidelity attribute of the spooled file and always

performs content printing.

  • The transform does not support COR and multi-up printing.
  • The transform does not support color barcodes.
  • At this time, the transform can only produce 240 or 300 dpi images.
  • Use of the AFPRSC keyword in DDS
Barcodes

HPT does support printing barcodes to ASCII attached LAN printers. However, you'll need to be on v5r4 or higher in order to print 2D barcodes such MaxiCode (used by UPS), PDF417, and Data Matrix. See the IBM technical document #13481357 - IBM OS/400 Support for Two-Dimensional Bar Codes - MaxiCode, PDF417 and Data Matrix.

AFPDS vs. IPDS

In the IBM i world of the printing, AFPDS vs. IPDS can be very confusing. Basically, IPDS is the name of a data stream and a communication's protocol. AFPDS is the name of a data stream.

  • The IPDS data stream uses the IPDS protocol.
  • The AFPDS data stream also uses the IPDS protocol.

You can think of the IPDS data stream as a subset of the AFPDS data stream. Everything you can use in a printer file defined with DEVTYPE(*IPDS) can be used in one defined with DEVTYPE(*AFPDS). The reverse is not true. A printer file defined with DEVTYPE(*AFPDS) can have functionality not available in a printer file defined with DEVTYPE(*IPDS). For this reason, the *AFPDS data stream is preferred over the *IPDS data stream.

A printer that supports the IPDS protocol is called an IPDS printer and such a printer can accept both the IPDS and the AFPDS data streams. That being the case, what controls which data stream is sent to the printer? The answer lays is how the device description is defined on the server side.

  • "CRTDEVPRT DEVD(PRT01) TYPE(*IPDS) AFP(*NO)" results in the *IPDS data stream being used.
  • "CRTDEVPRT DEVD(PRT01) TYPE(*IPDS) AFP(*YES)" results in the *AFPDS data stream being used.

Note: in order to specify AFP(*YES), PSF/400 is required.

  • Printers defined with TYPE(*IPDS) AFP(*NO) can handle spool files (data streams) of *SCS and *IPDS.
  • Printers defined with TYPE(*IPDS) AFP(*YES) can handle spool files (data streams) of *SCS, *IPDS, and *AFPDS.

For more detailed information regarding printing on the IBM i, please see the IBM AS/400 Printing V Redbook.