Paul Gilmartin asked:
>Will the LPR command print to network-attached printers such as might be
>used by Linux or Windows?

Provided the target is a Line Printer Daemon (LPD) printer queue, and
provided the transmitted data stream is something the printer queue can
understand, yes. (The target queue may or may not transform the incoming
data stream, but the printer will try, from bits onto physical media.) For
more information on the LPD protocol Wikipedia has a fairly good article:

https://en.wikipedia.org/wiki/Line_Printer_Daemon_protocol

>Will the LPR command print UNIX files?

z/OS Communications Server's LPR is not a z/OS UNIX command. You invoke LPR
either interactively in TSO/E or in a batch program. z/OS Communications
Server's LPR does not accept z/OS UNIX files as direct input. However, here
are some basic approaches to printing z/OS UNIX files (still with the above
assumptions):

1. From TSO/E you can use either OGET or OCOPY followed by LPR.

2. From z/OS UNIX you can use the cp command followed by tso (or tsocmd) to
invoke LPR.

There are fancier ways, too. One only slightly fancier way is to use a
script (e.g. a REXX script) to turn a modestly multi-step process into one
step, with a single command.

By default z/OS Communications Server's LPR will convert at least typically
encountered Latin alphabetic EBCDIC plain text to ASCII plain text. There
are several optional LPR parameters available to modify this conversion in
various ways, and, not surprisingly, the BINary parameter disables the
conversion.

Note that z/OS Communications Server includes an implementation of the LPD
server called, appropriately enough, LPSERVE. z/OS Infoprint Server
includes its own separate implementation. z/OS Infoprint Server's LPR and
LPD implementations are more feature rich than those in z/OS Communications
Server.

--------------------------------------------------------------------------------------------------------
Timothy Sipples
IT Architect Executive, Industry Solutions, IBM z Systems, AP/GCG/MEA
E-Mail: [email protected]

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to