Ignite-UX Reference (March 2010, B3921-90005)

ANSITAPE(1M) Merlin ANSITAPE(1M)
have variable record sizes with a smaller maximum, you must specify:
rs=recordsize rf=v
When the recordsize is manually given, ansitape does not read disk files to determine
the maximum record length.
rs=r This is a variant of the rs= option. This causes ansitape to read all disk files for
recordsize, regardless of their size. Normally, files larger than 100K bytes are not scanned
for recordsize. Using this option also implies variable-length records.
bs=blocksize Specify the output blocksize, in bytes. As many records as will fit are crammed into each
physical tape block. ANSI standards limit this to 2048 bytes (the default), but you may
specify more or less. Be advised that specifying more may prevent some systems from read-
ing the tape.
rf=v Record format is variable-length. In other words, they are text files. This is the default, and
should be left alone unless you really know what you’re doing.
rf=f Record format is fixed-length. This is usually a bad choice, and should be reserved for
binary files. This also turns off the newline strip usually done for Unix text files.
cc=i Carriage control implied (default). Unlike Unix text files, where records are delimited by a
newline character, ANSI files do not normally include the newline as part of the record.
Instead, a newline is automatically added to the record whenever it is sent to a printing
device.
cc=f Carriage control Fortran. Each line is expected to start with a Fortran carriage-control char-
acter. Ansitape does not insert these characters automatically, it merely marks the file as
having them. This is of limited usefulness. (Good opportunity for another ambitious
hacker.)
cc=e Carriage control is embedded. Carriage control characters (if any) are a part of the data
records. This is usually used in the case of binary data files.
AUTHOR
David S. Hayes, Site Manager, US Army Artificial Intelligence Center. Originally developed June 1986.
Revised August 1986. This software is in the public domain.
FILES
/dev/rmt? half-inch magnetic tape interface
/dev/rar? quarter-inch magnetic tape interface
/dev/rst? SCSI tape interface
SEE ALSO
dd(1), umask(2), mtio(4), tp(5).
BUGS
The r (write) option cannot be used with quarter-inch archive tapes, since these tape drives cannot
backspace.
There is no way to ask for the n-th occurrence of a file.
Tape errors are handled ungracefully.
Files with names longer than 80 characters have the name truncated. This is a limitation of the ANSI
labelling standard. If the tape is made without HDR3 and HDR4 labels (3oriswitch), the name is
limited to 17 characters.
Multi-volume tape sets cannot yet be generated. ansitape will read them just fine, but it won’t write
them. Unix provides no device-independent way to detect a physical end-of-tape. It was decided that a
2400-foot limitation was preferrable to device-dependence.
AICenter 23 June 1986 3