Your Browser is not longer supported

Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...

{{viewport.spaceProperty.prod}}

bs2lp - send files to a printer (BS2000)

&pagelevel(4)&pagelevel

Print jobs are sent to the BS2000 spool via the PRNT macro. No ID is allocated for the print job. Management of the print job is only possible using the BS2000 spool.


Syntax


bs2lp[ option] ... [ file] ...


-c

This option is always set implicitly. The specified file is copied and the copies are
printed.

option

-d

Output medium. You can specify a printer name or a pool name (printer class name).

The environment variables LPDEST and PRINTER are not supported.

-n copies

Use this option to specify the number of times the file is to be printed. The largest supported value for copies is 255, the smallest is 1.

-ncopies not specified:
A value of 1 is assumed for the number of copies.

-t title

(t - title) title will be printed in the header of the printout.

-m
-o
-s
-w

Ignored.

file

Name of the file which is to be printed. You can also enter more than one file. These files are then printed in the order in which they are specified when the command is called.
You must specify any options which you only wish to apply to one file before entering the name of the file in question.

file not specified:
bs2lp reads from the standard input.

Mode of operation

The POSIX file is copied as a temporary SAM file, i.e. the ERASE operand is always implicitly set when SPOOL is called.

Specifying additional operands for print jobs

All keyword operands of the PRNT macro can be implicitly specified through the .lprc file which is searched for in the current HOME directory. At least one PRNT operand must be fully defined for each line. A line may contain more than one operand if these are separated by commas.The entries in the .lprc file are transferred to PRNT without checking.

Example .lprc file:


FORM=STD
LINES=80
ROT=90, CHARS=R01


You cannot simultaneously specify an operand and an option which is mapped to this operand.

Option mapping:

  • the option -d is mapped to the BS2000 operand DEST

  • the option -n is mapped to the BS2000 operand COPIES

  • the option -t is mapped to the BS2000 operand TEXT.


Error

bs2lp: ERROR: No (or empty) input files

Exit status

0if spool jobs were started successfully.

Example

The command bs2lp -n2 file and the entries in the .lprc file described above result in thefollowing spool call for BS2000:

PRNT file, COPIES=2,FORM=STD.LINES=80,ROT=90,CHARS=R01