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)

6.8 Emulated Tape Devices

Tape device statements are used to define tape devices to the Hercules configuration. Five types of
emulation are supported:

SCSI tapes Optical Media Attach (OMA) virtual files AWSTAPE virtual files HET virtual files Fake Tape virtual files

6.8.1 SCSI Tapes

6.8.1.1 Function

When defining SCSI tapes the argument specifies the tape device name (usually /dev/nst0). SCSI tapes
are read and written using variable length EBCDIC blocks and filemarks exactly like a mainframe tape
volume (see also the AUTO_SCSI_MOUNT system parameter).

6.8.1.2 Syntax

Descriptive

[--no-erg] [--blkid---blkid-22]

Diagram

Êʬ¬¬ addr ¬¬¬ ¬¬¬ ¬¬¬§¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬§¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬Ê







--no-

ʬ¬¬§¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬§¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬ÊÍ


--blkid-


--blkid-2

6.8.1.3 Parameter

devaddr

This is the device address.

devtype

This is the device type. Valid device types are 3410, 3420, 3422, 3430, 3480, 3490,
8809 and 9347.

devname

The tape device name (usually “/dev/nst0” on Linux or “\\.\Tape0” on Windows).

--no-erg

This option is intended to prevent issuance of the Erase Gap command to those
SCSI tape drives that do not support it (e.g. Quantum DLT series). It causes Her-

Previous Page Next Page