FCBCHECK

This argument specifies that an attempt to skip to a FCB channel for which no line
number has been set will cause the command to be rejected with a unit check. This
is the default.

NOFCBCHECK

This argument specifies that an attempt to skip to a FCB channel for which no line
number has been set will cause the next line of output printed on the next line on
the printer output. The opposite, FCBCHECK, is the default.

OPTBROWSE

Printing is optimized for browsing. This is the default.

OPTPRINT

Printing is optimized for printed output.

LPI=

Specifies the number of lines per inch. The value of lpi must be 6 or 8. The default
number of lines per inch is 6.

INDEX=

Sets the 3211 indexing. The value of idx must be in the range of 0 - 31. The default
is 0.

LPP=

Specifies the number of lines per page. The value of lpp must be numeric but is not
further checked. Any number of lines per page is allowed. The default number of
lines per page is 66.

FCB=

FCB specifies an initial FCB image to use for the printer. The argument must be
given in the form l1:c1, ... ,l12:c12 where 'l' and 'c' are numeric. 'l' is the line number
and 'c' is the assigned channel. There is a maximum of 12' l:c' pairs allowed.

The default is FCB=1:1,07:2,13:3,19:4,25:5,31:6,37:7,43:8,61:9,49:10,55:11,61:12.

host

This is the hostname or the IP address of the socket device.

port

This is the port number of the socket device.

SOCKDEV

SOCKDEV indicates that the line printer is a socket device wherein the filename is
actually a socket specification instead of a device filename.

When used, there must only be one filename specified in the form port or host:port.
The device then accepts remote connections on the given TCP/IP port and writes
data to the socket instead to a device file.

This allows automatic remote spooling of line printer data. The sockdev option is
mutually exclusive with all other printer options (like CRLF etc.) and must be speci-
fied alone.

6.7.4 Examples

Example 1:

Define a 1403 line printer device on device address 000E. The printed output has to be written to the file
"D:\PRT\PRT1.TXT" with carriage return line feed sequences at the end of each line. Any existing output
in the file has to be kept when the file is opened for output.

000E 1403 D:/PRT/PRT1.TXT CRLF NOCLEAR

Example 2:

Define a 3211 line printer device on device address 000F. The printed output has to be written to the file
"D:\PRT\PRT2.TXT" with line feeds only at the end of each line. Any existing output in the file will be over-
written when the file is opened for output.

000F 3211 D:/PRT/PRT2.TXT

Example 3:

Define a 1403 line printer device on device address 000E. The printed output has to be written to the file
"D:\PRT\PRT1.TXT" with carriage return line feed sequences at the end of each line. A specific FCB has
to be used and a skip to a FCB channel for which no line number has been set (channels 7 and 8) has to
cause a unit check. The number of lines per inch must be 6 and the number of lines per page is 66. The
output has to be optimized for printing.

000E 1403 D:/PRT/PRT1.TXT CRLF FCBCHECK LPI=6 LPP=66 OPTPRINT
FCB=1:1,07:2,13:3,19:4,25:5,31:6,61:9,49:10,55:11,61:12

Example 4:

Define a 1403 line printer device on device address 000E. The line printer is a socket device with the IP
address 192.168.0.199 and port 1403. Output is written to the socket instead to a device file.

000E 1403 192.168.0.199:1403 SOCKDEV

Example 5:

Define a 1403 line printer device on device address 000E. The command line for the print-to-pipe feature
is “/usr/bin/lpr”, the argument for the ‘lpr’ program is “-Phplj” (Unix example). In the case of the Windows
example the command line for the print-to-pipe feature is “C:\utils\pr”, the argument for the ‘pr’ program is
-PLPTP1:” . Each printed line will have a carriage return line feed sequence at the end.

000E 1403 "|/usr/bin/lpr -Phplj" crlf (for Unix)

000E 1403 "|c:\utils\pr -s -PLPT1:" crlf (for Windows)

Previous Page Next Page