~¬¬¬ ¬¬¬¬®
~¬¬¬¬
¬¬¬¬¬¬®

ʬ¬¬¦¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¦¬¬¬¦¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¦¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬Ê



¬¬¬¬
lpi ¬¬¬¬


~¬¬¬ ¬¬¬¬¬®

~¬¬¬¬ ¬¬¬¬¬®

ʬ¬¬¦¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¦¬¬¬¦¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¦¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬Ê


idx
¬¬¬¬ lpp ¬¬¬¬








~ ¬¬¬¬®

ʬ¬¬¦¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¦¬¬¬¬¬¬¬¬¬¬¬ÊÍ





or

Êʬ¬¬ ddr ¬¬¬ ¬¬¬§¬¬¬¬¬¬¬¬¬¬¬¬¬§¬¬¬ port ¬¬¬¬¬¬¬ÊÍ





6.7.3 Parameter

devaddr

This is the device address.

devtype

This is the device type. Valid printer types are 1403 and 3211.

filename

The name (and optionally the path) of the printer file or the “print-to-pipe” command
line. If the filename begins with the vertical bar '|' pipe character, then it is removed
and the remainder of the filename is interpreted as a command line (the name of a
program or batch file followed by any necessary arguments) to which to "pipe" the
printer output to.

This is known as the "print-to-pipe" feature. All printer output is then sent to the
piped programs stdin input, and all of the piped programs stdout and stderr output
is piped back to Hercules for displaying on the hardware console.

If the "print-to-pipe" command line contains arguments, then quotes must be placed
around the entire filename string including the vertical bar. If the "print-to-pipe" com-
mand line itself contains quotes, then the command line must be enclosed in apo-
strophes instead of quotes.

CRLF

This optional parameter specifies that carriage return line feed sequences are writ-
ten at the end of each line. If the CRLF argument is not specified then line feeds
only are written at the end of each line.

NOCLEAR

This argument specifies that the output file will not be cleared to zero bytes when it
is opened. If NOCLEAR is not specified, then any previous content of the file is de-
stroyed when the file is opened for output.

RAWCC

RAWCC specifies that printer output CCWs are not to be interpreted, but simply
dumped in hex to the printer output file. This is useful for debugging. Default is to
interpret printer CCWs normally.

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

Previous Page Next Page