16.12.2012 Views

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Description<br />

Options<br />

Examples<br />

lp prints one or more input files on a printer. If you do not specify any files on the<br />

command line, or if you specify a filename of – (dash), lp reads and prints the<br />

standard input. The files are printed in the same order that they are specified on the<br />

command line.<br />

Note: If you are using the z/<strong>OS</strong> Infoprint Server Feature, your system automatically<br />

uses that version of the lp command. For more information about the z/<strong>OS</strong><br />

Infoprint Server commands, see z/<strong>OS</strong> Infoprint Server User’s Guide.<br />

–c Immediately copies the files to be printed. This ensures that the version of<br />

the file that exists when the print request is made is the version printed.<br />

–d dest<br />

Specifies dest as the output device. –d takes precedence over the LPDEST<br />

environment variable, which in turn takes precedence over the PRINTER<br />

environment variable.<br />

dest is a comma-separated list of arguments that is passed to JES. The first<br />

item must be the “destination_name”. The destination name can take the<br />

form NODE.USER. The second item must be the “class”. The third item<br />

must be the “forms”. Not all items must be specified, but the items must be<br />

specified in the proper order. The definition of “destination_name”, “class”,<br />

and “forms” is defined by JES.<br />

For more information on the dest option, see z/<strong>OS</strong> MVS JCL Reference.<br />

–m This option is not implemented.<br />

–n number<br />

Prints number copies of each input file (the default is 1 copy).<br />

–o printer-option<br />

This option is not implemented.<br />

–s This option is not implemented.<br />

–t This option is not implemented.<br />

–w This option is not implemented.<br />

1. To send a previously formatted file to a JES printer:<br />

lp filename<br />

You can specify more than one filename with the command.<br />

2. The following prints the file temp.prt using the default printer destination and<br />

specifying class c (where c is the locally designated class for confidential<br />

information):<br />

lp –d ,c temp.prt<br />

lp –d,c temp.prt<br />

The parameters on the -d option are positional, so if you omit a destination, you<br />

must still include the comma.<br />

lp<br />

Chapter 2. Shell command descriptions 361

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!