Question & Answer
Question
When using LPR or LPD to send a file to print on an HP printer, only the first line of the file prints.
Answer
HP laserjet printers expect a carriage return/line feed hex character set of x'0D0A'. LPR sends a line feed x'0A' (per RFC 1179). The HP LJ gets confused and throws away the line.
Code the printer name as text. This allows the printer to know only a line feed (x'0A') will be sent and will handle this accordingly.
If using LPR to send directly to the printer, issue:
lpr 'test' (PRINTER text HOST printer's_IPname_or_address
If using LPR to send to LPD, and on to a remote printer, define the printer to LPD as follows:
SERVICE hp1 PRINTER
REMOTE text@address_of_printer EPORT
LINESIZE 132
PAGESIZE 60
Next, use the following LPR command to send it to LPD:
lpr 'test' (printer hp1 host lpd_host_name_or_address
Product Synonym
ZOSCS COMMSERVER
Was this topic helpful?
Document Information
Modified date:
23 February 2019
UID
dwa1413591